MacOS 上的 Maven 警告:工作区定义的 VM 不包含有效的 jre/lib/rt.jar
时收到此警告
我正在尝试清理我的 Maven,当我运行 mvn eclipse:eclipse -Dwtpversion=2.0 [警告] 工作区定义了一个不包含有效 jre/lib/rt.jar 的 VM :/System/Library/ Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
有谁知道如何修复它吗?
我在 MacOS 上。这是我为 Eclipse 配置的内容:
I am trying to clean my Maven and I am getting this warning when I run mvn eclipse:eclipse -Dwtpversion=2.0
[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Does any one have a clue on how to fix it?
I am on MacOS. Here is what I have configured for my eclipse:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此处有一个补丁,但迄今为止尚未应用于任何版本。 :-( 作为解决方法,您可以按照 此处。
There is a patch here, but it has not been applied to any release so far. :-( As a workaround you can create a symlink as described here.
上面的答案有效,但似乎超出了需要的范围。
至少在 OSX Lion 上,您可以使用:
The answer above works, but seems to be more than what's needed.
Minimally on OSX Lion, you may get by with: