解决-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variabl

解决-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

3.0 重新编译项目Run As-Maven install,编译成功

解决-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variabl_第1张图片

你可能感兴趣的:(jdk,maven,tomcat)