Maven 3.3.1 ECLIPSE:-Dmaven.multiModuleProjectDirectory 系统属性未设置 [英] Maven 3.3.1 ECLIPSE: -Dmaven.multiModuleProjectDirectory system propery is not set
问题描述
我刚刚在 Mac OS X 上安装了 Maven 3.3.1,使用 Eclipse 构建 Maven 项目给了我这个错误:
I just installed Maven 3.3.1 on Mac OS X, and building a Maven Project with Eclipse is giving me this error:
-Dmaven.multiModuleProjectDirectory system property is not set.
Check $M2_HOME environment variable and mvn script match.
Maven 3.2.5 之前没有发生过这种情况.
It did not happen before with Maven 3.2.5.
有没有办法解决这个问题(除了降级到 3.2.5)?
Is there any way to fix this (except downgrading to 3.2.5) ?
在 Eclipse 中,我究竟可以在哪里设置这个multiModuleProjectDirectory"属性?
Where exactly can I set this "multiModuleProjectDirectory" property in Eclipse?
推荐答案
在 Eclipse
中,你需要这样做.
In Eclipse
you need to go like this.
Window-> Preference -> Java -> Installed JREs -> Edit
在编辑 Default VM arguments
中,您需要放置
In the edit Default VM arguments
you need to put
如果您已经设置了 Maven 主页.
If you already set the maven home.
-Dmaven.multiModuleProjectDirectory=$M2_HOME
这篇关于Maven 3.3.1 ECLIPSE:-Dmaven.multiModuleProjectDirectory 系统属性未设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!