1. 程式人生 > >target\surefire-reports for the individual test results因為測試程式碼出錯而無法打包

target\surefire-reports for the individual test results因為測試程式碼出錯而無法打包

錯誤:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project web_nanchang: There are test failures.

[ERROR]

[ERROR] Please refer to E:\maven\web_nanchang\target\surefire-reports for the individual test results.

解決方法:

這是因為測試程式碼時遇到錯誤,它會停止編譯。只需要在pom.xml的裡新增以下配置,使得測試出錯不影響專案的編譯。

org.apache.maven.plugins maven-surefire-plugin true