两种解决方案
1.修改maven执行命令
mvn clean install -Dmaven.test.failure.ignore=true
2.修改pom文件,加入testFailureIgnore=true
<plugin>
<groupId>org.apache.maven.pluginsgroupId>
<artifactId>maven-surefire-pluginartifactId>
<configuration>
<testFailureIgnore>truetestFailureIgnore>
configuration>
plugin>