<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.
精彩评论