【Maven】跳过test测试直接进行编译打包

转载自:

  http://blog.csdn.net/lihuapiao/article/details/47775455

有2种方式 

方式1:用命令带上参数

mvn install -Dmaven.test.skip=true

 

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

 
 在CODE上查看代码片派生到我的代码片
  1.  <plugins>  
  2.             <!--跳过test begin-->  
  3.             <plugin>  
  4.                 <groupId>org.apache.maven.plugins</groupId>  
  5.                 <artifactId>maven-surefire-plugin</artifactId>  
  6.                 <configuration>  
  7.                     <skip>true</skip>  
  8.                 </configuration>  
  9.             </plugin>  
  10.             <!--跳过test end--><span style="font-family:Arial;">  
  11.   
  12. </span>  

posted on 2017-05-22 19:51  zgz2016  阅读(2656)  评论(0编辑  收藏  举报

导航