【问题标题】:Maven Assembly include specific version of the artifactMaven 程序集包含工件的特定版本
【发布时间】:2013-02-19 17:27:59
【问题描述】:

我在 DependencySet 包含部分中包含了几个 jars

<includes>
    <include>dom4j:dom4j:jar</include>
    <include>log4j:log4j:jar</include>
</includes>

但是我得到了 dom4j-1.5.jar 和 log4j-1.2.jar。由于 repo 中还有很多其他版本, 我想为我的应用程序提取特定版本。 [dom4j-1.6.1.jar 和 log4j-1.2.5.jar]

如何强制 maven 在 Assembly.xml 中获取特定版本?

【问题讨论】:

    标签: maven include dependencies maven-assembly-plugin


    【解决方案1】:

    尝试以下格式的包含:

    (groupId:artifactId:type:[classifier:]version)
    

    或者,修复你的依赖关系。您可以通过将显式依赖项添加到要在 pom.xml 中用于调用程序集插件的依赖项的版本中来做到这一点。

    【讨论】:

    猜你喜欢
    • 2015-03-29
    • 1970-01-01
    • 2011-05-17
    • 1970-01-01
    • 1970-01-01
    • 2020-06-29
    • 1970-01-01
    • 1970-01-01
    • 2011-10-15
    相关资源
    最近更新 更多