Steps to create a maven project:
File-->new-->other-->maven project-->next-->maven-archetype-quickstart-->enter group ID and artifact Id-->finish.
if you want to add the Junit and mockito jar for the maven project
add the code below in the pom.xml.
<dependencies>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.9.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
浙公网安备 33010602011771号