myeclipse使用maven插件进行maven install时报错check $m2_home environment variable and mvn script match

时间:2022-01-03 12:43:38
分类: maven2015-09-01 18:06 842人阅读 评论(0) 收藏 举报

If u are getting error like -Dmaven.multiModuleProjectDirectory system propery is not set.

Check $M2_HOME environment variable and mvn script match In eclipse

then go through Window--> Preference --> Java --> Installed JREs --> Edit In the edit Default VM arguments you need to put If you already set the maven home.

-Dmaven.multiModuleProjectDirectory=M2_HOME (For Windows machine)

-Dmaven.multiModuleProjectDirectory=$M2_HOME (For Mac OS X)