<project>
[...]
<build>
<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>
</build>
[...]
</project>
mvn install -DskipTests
mvn install -Dmaven.test.skip=true
转载于:https://blog.csdn.net/so_geili/article/details/79986789
原文:https://www.cnblogs.com/share-record/p/11644909.html