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>

posted on 2015-08-18 19:00  艾米刀鱼  阅读(164)  评论(0)    收藏  举报

导航