3.0.0-M4 maven test failed: nullpointException
服务器升级了内存后,原来sonar集成jacoco能正常跳过失败单元测试案例,现在变的不行了,脚本提示exit code 1。
百度来百度去,发现有可能是因为系统和surefire插件的版本存在bug,网上建议提升版本
所以换成3.0.0-M5版本,但是报类找不到异常,可能是插件版本兼容的问题。
最后版本降成3.0.0-M3
BUIDLD SUCESS
大成功!
参考链接:https://stackoverflow.com/questions/53258224/maven-archetype-org-apache-maven-pluginsmaven-surefire-plugin2-20-1test-fail