【问题标题】:Is there a way to include two versions of the same artifact in Maven?有没有办法在 Maven 中包含同一工件的两个版本?
【发布时间】:2011-01-24 20:11:40
【问题描述】:
<dependency>
    <groupId>org.jmock</groupId>
    <artifactId>jmock</artifactId>
    <version>1.2.0</version>   
</dependency>
<!--Include Both Jmock 1&2 is cool: http://www.jmock.org/upgrade1to2.html -->
    <dependency>
      <groupId>org.jmock</groupId>
      <artifactId>jmock</artifactId>
      <version>2.5.1</version>
    </dependency>   

这不起作用。

【问题讨论】:

    标签: maven jmock


    【解决方案1】:

    查看http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html 中的依赖中介部分。一个版本将获胜。

    【讨论】:

    • 所以看起来我不能同时包含两者:-(
    • @DD:不,你当然不能。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-12-13
    • 2022-01-05
    • 2019-03-21
    • 1970-01-01
    • 2021-04-20
    • 1970-01-01
    相关资源
    最近更新 更多