Maven打包跳过测试
方法一:
<plugins>
<!-- 打包跳过单元测试 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
方法二:
mvn install -DskipTests
或者
mvn install -Dmaven.test.skip=true