Eclipse中使用Maven,报错“$MAVEN_HOME”

 

1、今天在用eclipse时,执行maven命令,报错,如图“$MAVEN_HOME”

image

 

解决方案:

1、点击 windows---preferences,打开preferences

2、选择Installed JREs

3、双击JDK

4、修改Default VM Arguments 为:  -Dmaven.multiModuleProjectDirectory=$MAVEN_HOME

5、保存

image

 

再次执行maven命令,成功,问题解决

image

posted @ 2016-01-11 09:31  黑夜小怪  阅读(1495)  评论(0编辑  收藏  举报