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

原文地址:https://www.cnblogs.com/nihaorz/p/6677622.html