首页 > 代码库 > 解决:-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME

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

maven中解决:-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

本文出自 “IT菜鸟” 博客,请务必保留此出处http://mazongfei.blog.51cto.com/3174958/1897820

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