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>   

This doesnt work.

DD.
  • 21,498
  • 52
  • 157
  • 246

1 Answers1

4

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

Navi
  • 8,580
  • 4
  • 34
  • 32