-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.

maven的clean时报错

  -Dmaven.multiModuleProjectDirectory system propery 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

技术分享

在去build, clean , install就没有问题了

 

  

文章来自:http://www.cnblogs.com/duwenlei/p/4552666.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3