zl程序教程

您现在的位置是:首页 >  Java

当前栏目

mvn install 报错 Please refer to E:\maven\web_nanchang\target\surefire-reports for the indivi..

2023-02-18 16:31:14 时间

mvn install 报错 Please refer to E:\maven\web_nanchang\target\surefire-reports for the indivi..

原因是测试代码发生错误导致编译终止失败。

解决办法:

pom.xml 文件的build里面plugins下添加如下代码

<plugin>

            <groupId>org.apache.maven.plugins</groupId>

            <artifactId>maven-surefire-plugin</artifactId>

            <configuration>

                <testFailureIgnore>true</testFailureIgnore>

            </configuration>

        </plugin>

我是这样解决的。

其他错误解决办法参照:

http://blog.csdn.net/lch_cn/article/details/8225448/