maven项目打包时报错:

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project ilcbs_server_web: There are test failures.
[ERROR] 
[ERROR] Please refer to F:\尚硅谷视频\分布式国际物流云商项目\Logistics_02\ilcbs_parent\ilcbs_server_web\target\surefire-reports for the individual test results.

解决办法:
pom.xml中添加插件

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

完整格式:

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

更多推荐

maven项目\target\surefire-reports for the individual test results报错