开发者

Is there a way to include two versions of the same artifact in Maven?

开发者 https://www.devze.com 2023-02-06 15:25 出处:网络
<dependency> <groupId>org.jmock</groupId> <artifactId>jmock</artifactId> <version>1.2.0</version>开发者_如何转开发
<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>   

This doesnt work.


Check out the dependency mediation section in http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html . One version will win.

0

精彩评论

暂无评论...
验证码 换一张
取 消