eclipse使用maven打包时去掉测试类

eclipse使用maven打包时去掉测试类

在pom.xml文件中增加如下配置:

<plugin>  
  <groupId>org.apache.maven.plugins</groupId>  
  <artifactId>maven-surefire-plugin</artifactId>   
  <configuration>   
     <skip>true</skip>  
  </configuration>  
</plugin>
原文地址:https://www.cnblogs.com/taiguyiba/p/9092874.html