maven+jmock

Maven + jmock + dependency +repository

 

http://repo1.maven.org/maven2/

 

 //Create web project

mvn archetype:create -DgroupId=com -DartifactId=maven3test -DarchetypeArtifactId=maven-archetype-webapp

 

 

 // Install Jar to repository

mvn install:install-file -Dfile=D:\NAB\software\jMock\jmock-2.5.1\jmock-2.5.1.jar -DgroupId=org.jmock -DartifactId=jmock-junit4 -Dversion=2.5.1 -Dpackaging=jar

 

   <dependency>
   <groupId>org.jmock</groupId>
   <artifactId>jmock-junit4</artifactId>
   <version>2.5.1</version>
 </dependency>

 

 

<dependency>
  <groupId>org.jmock</groupId>
  <artifactId>jmock-legacy</artifactId>
  <version>2.5.1</version>
</dependency>

 

 

你可能感兴趣的:(maven)