3
<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>   

这不起作用。

4

1 回答 1

4

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

于 2011-01-24T11:35:43.283 回答