maven 打包 出现 Please refer to XXXX for the individual test results

在这里插入图片描述
1、maven 打包的时候错误提示

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project XXXX: There are test failures.

Please refer to D:\Others\XXXX\target\surefire-reports for the individual test results.

2、解决办法
在pom.xml中添加忽略测试失败配置

<plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
                <testFailureIgnore>true</testFailureIgnore>
            </configuration>
</plugin>

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/lllbn/article/details/126963582
今日推荐