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