mvn install 报错 Please refer to E:mavenweb_nanchangtargetsurefire-reports for the indivi..

2022-12-16 17:48:48 浏览数 (1)

mvn install 报错 Please refer to E:mavenweb_nanchangtargetsurefire-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/

0 人点赞