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

相關文章
相關標籤/搜索