maven install 跳过test方法

方式1:用命令带上参数

mvn install -Dmaven.test.skip=true

 

方式2:在pom.xml里面配置

<build>
<defaultGoal>compile</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>

 

参考:

http://www.cnblogs.com/GarfieldTom/p/3707160.html
http://my.oschina.net/u/865478/blog/159657

posted @ 2016-05-27 18:13  宝山方圆  阅读(7735)  评论(0)    收藏  举报