【发布时间】:2019-10-20 04:21:16
【问题描述】:
我正在尝试运行“mvn clean package”来编译我的代码。我收到这样的错误。
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test
(default-test) on project hilton-rest-gen: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed:
The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /Users/ronhoward/rest-gen-develop && /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/bin/java
-javaagent:/Users/ronhoward/.m2/repository/org/jacoco/org.jacoco.agent/0.8.1/org.jacoco.agent-0.8.1-runtime.jar=destfile=/Users/ronhoward/rest-gen-develop/target/coverage-reports/jacoco-unit.exec
-jar /Users/ronhoward/rest-gen-develop/target/surefire/surefirebooter11844541132864858315.jar
/Users/ronhoward/rest-gen-develop/target/surefire/surefire12749876885671721861tmp
/Users/ronhoward/rest-gen-develop/target/surefire/surefire_03804673154865947634tmp
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
对我如何处理这个问题有什么建议吗?
【问题讨论】:
-
使用最新版本的 maven-surefire-plugin、jacoco 等。除此之外,完整的日志会显示您的代码中存在测试失败?
标签: java maven jacoco maven-surefire-plugin