[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
版权声明:本文为博主原创文章,转载请附上博文链接!

相关文章:

  • 2021-07-08
  • 2021-11-30
  • 2022-12-23
  • 2021-10-29
  • 2021-07-08
  • 2022-12-23
  • 2021-05-30
  • 2021-09-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2022-02-05
相关资源
相似解决方案