http://maven.apache.org/surefire/maven-surefire-plugin/
The Surefire Plugin is used during the test phase of the build lifecycle to execute the unit tests of an application. It generates reports in two different file formats:
1. 忽略测试TEST
mvn package -Dmaven.test.skip=true
方法二:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>2. 忽略测试错误
方法一:
mvn test -Dmaven.test.failure.ignore=true
方法二:<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>