有2种方式
方式1:用命令带上参数
mvn install -Dmaven.test.skip=true
方式2:在pom.xml里面配置
<plugins>
<!--跳过test begin-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<!--跳过test end--><span style="font-family:Arial;">
</span>
来自文章:
原文