maven install 跳过test方法

方式1:用命令带上参数html

mvn install -Dmaven.test.skip=trueapache

 

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

<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>ui

 

参考:spa

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

相关文章
相关标签/搜索