[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>

eclipse springboot maven 打包问题包错

相关文章:

  • 2021-11-12
  • 2022-01-07
  • 2021-05-07
  • 2022-12-23
  • 2023-04-11
  • 2021-11-12
  • 2021-11-28
  • 2021-10-25
猜你喜欢
  • 2021-04-27
  • 2021-04-13
  • 2021-10-18
  • 2021-09-02
  • 2021-09-08
  • 2021-09-01
  • 2022-01-03
相关资源
相似解决方案