Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project: There are test failures.
原因:打包時(shí)測(cè)試失敗泞边,導(dǎo)致終止了代碼的編譯
解決辦法:配置<testFailureIgnore>true</testFailureIgnore>忽略測(cè)試的錯(cuò)誤繼續(xù)編譯代碼
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
</plugins>
</build>