打包maven项目时报错:
\target\surefire-reports for the individual test results,无法正常打包,原因为单元测试不通过,maven打包就停止编译。
解决办法:
pom.xml中添加插件
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <testFailureIgnore>true</testFailureIgnore> </configuration> </plugin>