解决maven打包异常:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project gulimall-coupon: There are test failures.
Please refer to D:\m1\0613\mall-coupon\target\surefire-reports for the individual test results.
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
在网上查了半天都是一样的帖子,全都是说pom.xml中加上
<skip_maven_deploy>true</skip_maven_deploy>
解决不了问题,解决提出问题的人???就很棒
这就是直接跳过测试,加上这个直接test类跑不了了。好家伙
解决方法
其实解决方法很简单
在target文件夹中的surefire-reports中的xml文件
错误都在里面,按照上面的错误解决就ok
error解决完就能install了