1. 程式人生 > >Maven常見異常及解決方法---測試代碼編譯錯誤

Maven常見異常及解決方法---測試代碼編譯錯誤

detail mave https ror 錯誤 failure 異常 gin pro

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

解決方法:

這是因為測試代碼時遇到錯誤,它會停止編譯。只需要在pom.xml的<project>裏添加以下配置,使得測試出錯不影響項目的編譯。

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
</plugins>
</build>
---------------------
來源:CSDN
原文:https://blog.csdn.net/lch_cn/article/details/8225448?utm_source=copy
版權聲明:本文為博主原創文章,轉載請附上博文鏈接!

Maven常見異常及解決方法---測試代碼編譯錯誤