转载自:

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

有2种方式 

方式1:用命令带上参数

mvn install -Dmaven.test.skip=true

 

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

 
 【Maven】跳过test测试直接进行编译打包【Maven】跳过test测试直接进行编译打包
  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>  

相关文章:

  • 2021-07-01
  • 2021-11-15
  • 2022-12-23
  • 2021-06-20
  • 2021-05-19
  • 2021-12-20
猜你喜欢
  • 2022-12-23
  • 2021-12-04
  • 2022-01-02
  • 2021-07-07
  • 2021-12-25
  • 2021-09-02
  • 2021-06-22
相关资源
相似解决方案