gpt4 book ai didi

maven - Maven组装包括过滤

转载 作者:行者123 更新时间:2023-12-04 17:24:21 24 4
gpt4 key购买 nike

鉴于以下依赖关系包括一个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]

有人可以建议一种模式,该模式将包含带有或不带有分类器的 jar 吗?

最佳答案

检查pom.xml中的<dependencies>:在Assembly-xml中引用的依赖项也在那里吗?

关于maven - Maven组装包括过滤,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12823567/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com