简体   繁体   English

mvn 安装崩溃 jvm

[英]mvn install crashes jvm

I am facing a strange thing while running mvn install for a project.在为项目运行 mvn install 时,我遇到了一件奇怪的事情。 While executing the Copying webapp resources step the JVM crashed.在执行复制 webapp 资源步骤时,JVM 崩溃了。 I get a windows pop up saying Java has stopped working.我收到 windows 弹出窗口,提示 Java 已停止工作。 I am not getting any error message in the console so that I can get hold of the root cause.我没有在控制台中收到任何错误消息,因此我可以找到根本原因。 Any help is appreciated.任何帮助表示赞赏。

Try the below steps:请尝试以下步骤:

1. Use JDK instead of JRE in Installed JREs. 
   Eclipse Path (Windows--Preference--Java--Installed JREs )
2. Use this option for maven : 
   clean install -Djava.net.preferIPv4Stack=true 
   (in Run As Maven Build --- Goals)

[Try to find the JVM crash report if available in your machine] [尝试查找 JVM 崩溃报告(如果您的机器可用)]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM