解决-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.
myeclipse 2015 在编译(Run As-Maven install)maven项目出现如上错误,需要添加-Dmaven.multiModuleProjectDirectory=$M2_HOME,具体如下步骤
1.0 Windows-preference-Server-Runtime Environment选择jre
2.0 选中jdk点击edit,在Variables中添加
-Dmaven.multiModuleProjectDirectory=$M2_HOME