eclipse springboot maven 打包问题包错

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project demo-1: There are test failures.
[ERROR] 
[ERROR] Please refer to D:\workspace\demo-1\target\surefire-reports for the individual test results.

[ERROR] -> [Help 1]

原因是 eclispe 打包没跳过测试 跳过测试就成功,如果没有选择跳过测试 在pom.xml 配置如下:

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


猜你喜欢

转载自blog.csdn.net/jessecary/article/details/79695195
今日推荐