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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM