鉴于以下依赖项包含一个 Maven 程序集 XML...
<dependencySet>
<includes>
<include>com.company.product:library:jar:*:*</include>
</includes>
...为什么上述过滤器无法包含没有分类器的 library:jar?
[INFO] Reading assembly descriptor: assembly/release.xml
[WARNING] The following patterns were never triggered in this artifact inclusion filter:
o 'com.company.product:library:jar:*:*'
在我的模式中使用额外通配符的原因是我还有一个配置文件,它使用分类器“qa”构建我的所有库。当我激活该配置文件时,一切正常,但在默认配置文件(构建没有分类器的库)下它失败了。
如果我将过滤器更改为:
<include>com.company.product:library*</include>
然后 maven 构建实际上失败了,出现这个错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-
plugin:2.3:single (make-assembly) on project java-package: Failed to create
assembly: Error adding file 'com.company.product:library:jar:1.0.0-SNAPSHOT'
to archive: C:\Subversion\JavaProj\library\target\classes isn't a file. -> [Help 1]
有人可以建议一种模式,包括有或没有分类器的罐子吗?