首页 > 代码库 > [转]解决-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.

[转]解决-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.

来源:http://www.cnblogs.com/sprinng/p/5141233.html

1.添加M2_HOME的环境变量

  2.Preference->Java->Installed JREs->Edit 选择一个jdk,

  添加  -Dmaven.multiModuleProjectDirectory=$M2_HOME

技术分享

-Dmaven.multiModuleProjectDirectory=$M2_HOME

[转]解决-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.