日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

汇编写java模块_java – maven汇编插件moduleset源指令不包括任何文件,不符合附带的模块...

發布時間:2023/12/1 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 汇编写java模块_java – maven汇编插件moduleset源指令不包括任何文件,不符合附带的模块... 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

我有一個多模塊的maven項目,我正在嘗試獲取組件插件的moduleset源部分.

我有模塊“module_parent”,“module_a”和“module_assembly”.

module_a和module_assembly是module_parent的子項.

module_assembly對module_a有一個聲明的pom依賴關系.

module_assmebly具有程序集插件,assembly.xml如下所示:

bin

zip

false

true

com.mystuff:module_a

/

**/target/**

/

我對module_a的module_assembly有明確的依賴關系. module_assembly的pom中的依賴關系如下所示:

com.mystuff

module_a

1.0

pom

從mvn包中得到的錯誤,打開debug是:

[DEBUG] All known ContainerDescritporHandler components: [metaInf-services, plexus, metaInf-spring, file-aggregator]

[DEBUG] No dependency sets specified.

[WARNING] The following patterns were never triggered in this artifact inclusion filter:

o 'com.mystuff:module_a'

[DEBUG] Cannot find ArtifactResolver with hint: project-cache-aware

org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException

role: org.apache.maven.artifact.resolver.ArtifactResolver

roleHint: project-cache-aware

at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:257)

at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:233)

at

at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

Caused by: java.util.NoSuchElementException

at java.util.Collections$EmptyIterator.next(Collections.java:3006)

at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253)

... 43 more

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2:single (make-assembly) on project apm-server-distribution: Failed to create assembly: Error creating assembly archive bin: You must set at least one file. -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2:single (make-assembly) on project apm-server-distribution: Failed to create assembly: Error creating assembly archive bin: You must set at least one file.

我認為主要的問題是這個警告線:

[WARNING] The following patterns were never triggered in this artifact inclusion filter:

o 'com.mystuff:module_a'

我該如何更正?

總結

以上是生活随笔為你收集整理的汇编写java模块_java – maven汇编插件moduleset源指令不包括任何文件,不符合附带的模块...的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。