Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project: There are test failures.
原因:打包时测试失败,导致终止了代码的编译
解决办法:配置<testFailureIgnore>true</testFailureIgnore>忽略测试的错误继续编译代码
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
</plugins>
</build>