maven 运行tomcatrun -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.

 

1.添加M2_HOME的环境变量

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

  添加  -Dmaven.multiModuleProjectDirectory=$M2_HOME

-Dmaven.multiModuleProjectDirectory=$M2_HOME

posted @ 2017-01-12 10:22  dailyer  阅读(192)  评论(0编辑  收藏  举报