eclipse+Maven插件报错:-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.

问题描述:

eclipse indigo+maven3.3.3+jdk1.70

maven插件执行报错:-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.

解救方法:

1、设置M2_HOME=D:\TOOLS\MAVEN3.3.3

可cmd.exe后测试,mvn -version出现版本号后即为设置正确。

2、设置eclipse的java->installed jres->jdk1.70->Default VM arguments:

-Dmaven.multiModuleProjectDirectory=$M2_HOME

上一篇:selenium+python笔记4


下一篇:Android实现 ScrollView + ListView无滚动条滚动