Maven 跳过测试目录
在命令行使用
mvn install -Dmaven.skipTests 或 mvn install -Dmaven.test.skip=true
或在pom.xml设置
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.2</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
参考:
http://blog.csdn.net/jiushuai/article/details/7478372