mvn install 导致 JVM 崩溃

huangapple 未分类评论60阅读模式
英文:

mvn install crashes jvm

问题

我在运行项目的 "mvn install" 命令时遇到了一个奇怪的问题。在执行 复制 web 应用资源 这一步骤时,Java 虚拟机崩溃了。我收到一个 Windows 弹窗,上面写着 Java 已停止工作。在控制台中没有看到任何错误消息,因此无法找到根本原因。感谢任何帮助。

英文:

I am facing a strange thing while running mvn install for a project. While executing the Copying webapp resources step the JVM crashed. I get a windows pop up saying Java has stopped working. I am not getting any error message in the console so that I can get hold of the root cause. Any help is appreciated.

答案1

得分: 0

尝试以下步骤:

  1. 在已安装的JRE中使用JDK而不是JRE。
    Eclipse路径(Windows--首选项--Java--已安装的JRE)
  2. 对于Maven,请使用以下选项:
    clean install -Djava.net.preferIPv4Stack=true
    (在运行为Maven构建---目标)

[如果在您的计算机上有可用的JVM崩溃报告,请尝试查找]

英文:

Try the below steps :

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

[Try to find the JVM crash report if available in your machine]

huangapple
  • 本文由 发表于 2020年7月28日 22:27:17
  • 转载请务必保留本文链接:https://java.coder-hub.com/63136453.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定