maven编译的时候跳过test

方式1:用命令带上参数

mvn install -Dmaven.test.skip=true

 

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

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

 

via:https://my.oschina.net/u/865478/blog/159657

posted @ 2017-04-07 12:44  Nihaorz  阅读(1677)  评论(0编辑  收藏  举报