当前位置:网站首页>The forked VM terminated without saying properly goodbye
The forked VM terminated without saying properly goodbye
2022-07-05 13:54:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
一直在使用Maven开发项目,最近遇到了一个让人头疼的问题,在网上搜索竟然没有找到中文描述的解决方式,自己找了英文网站才明白原因并解决问题,故自己撰写此文,以便同行查阅。
在maven项目中使用maven install命令时,出现The forked VM terminated without saying properly goodbye异常,具体问题如下:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36.927 s
[INFO] Finished at: 2016-12-14T15:13:37+08:00
[INFO] Final Memory: 48M/351M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project message-provider: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /opt/f/.m2/gitlab-runner/builds/0aa902b1/0/paas/message/***-provider && /usr/java/jdk1.8.0_66/jre/bin/java -Xmx1024m -XX:MaxPermSize=256m -jar /opt/f/.m2/gitlab-runner/builds/0aa902b1/0/paas/message/message-provider/target/surefire/surefirebooter780447286825479042.jar /opt/f/.m2/gitlab-runner/builds/0aa902b1/0/paas/message/message-provider/target/surefire/surefire1560965759779144679tmp /opt/f/.m2/gitlab-runner/builds/0aa902b1/0/paas/message/essage-provider/target/surefire/surefire_09112026330459044785tmp
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :message-provider
Last login: Wed Dec 14 15:12:47 CST 2016
自己查找了半天,才知道原来在写单元测试的时候,测试结束时写了一行 System.exit(0); 造成了vm提前退出,去掉之后再次执行maven install正常。
解决方式,在idea中使用Ctrl+Shift+R 查找项目中的System.exit(0)代码行,然后删除之,我的项目删除之后执行mvn install正常。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/149581.html原文链接:https://javaforall.cn
边栏推荐
- 2022司钻(钻井)考试题库及模拟考试
- LeetCode_69(x 的平方根 )
- 治臻新能源冲刺科创板:年营收2.2亿 上汽创投是股东
- What is information security? What is included? What is the difference with network security?
- 鸿蒙第四次培训
- Attack and defense world crypto WP
- Kotlin协程利用CoroutineContext实现网络请求失败后重试逻辑
- 【华南理工大学】考研初试复试资料分享
- 【公开课预告】:视频质量评价基础与实践
- [machine learning notes] several methods of splitting data into training sets and test sets
猜你喜欢
RK3566添加LED
:: ffff:192.168.31.101 what address is it?
Laravel dompdf exports PDF, and the problem of Chinese garbled code is solved
我为什么支持 BAT 拆掉「AI 研究院」
Liar report query collection network PHP source code
Jetpack Compose入门到精通
Xampp configuring multiple items
Primary code audit [no dolls (modification)] assessment
Introduction to Chapter 8 proof problem of njupt "Xin'an numeral base"
About the problem and solution of 403 error in wampserver
随机推荐
Ordering system based on wechat applet
kafaka 日志收集
Linked list (simple)
常见问题之PHP——Fatal error: Allowed memory size of 314572800 bytes exhausted...
Require, require in PHP_ once、include、include_ Detailed explanation of the efficiency of repeated introduction of once class library
神经网络物联网未来现状和趋势及看法
金融壹賬通香港上市:市值63億港元 葉望春稱守正篤實,久久為功
Zibll theme external chain redirection go page beautification tutorial
瑞能实业IPO被终止:年营收4.47亿 曾拟募资3.76亿
Recommendation number | what are interesting people looking at?
Selenium crawls Baidu pictures
[machine learning notes] several methods of splitting data into training sets and test sets
蓝桥杯学习2022.7.5(上午)
【公开课预告】:视频质量评价基础与实践
Primary code audit [no dolls (modification)] assessment
Hide Chinese name
【云资源】云资源安全管理用什么软件好?为什么?
2022 machine fitter (Advanced) test question simulation test question bank simulation test platform operation
Simple process of penetration test
Simple PHP paging implementation