曾令勝 2020-08-21 08:08:12 2329 收藏 1
版權
1、maven 打包的時候錯誤提示
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project XXXX: There are test failures.
Please refer to D:\Others\XXXX\target\surefire-reports for the individual test results.
1
2
3
2、解決辦法
添加忽略測試失敗配置
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
————————————————
版權聲明:本文為CSDN博主「曾令勝」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/qq_21190847/article/details/108139421