转自http://fxb4632242.iteye.com/blog/2193945

eclipse中使用maven插件的时候,运行run as maven build的时候报错

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

 

可以设一个环境变量M2_HOME指向你的maven安装目录

M2_HOME=D:\Apps\apache-maven-3.3.1

然后在Window->Preference->Java->Installed JREs->Edit

在Default VM arguments中设置

-Dmaven.multiModuleProjectDirectory=$M2_HOME


-Dmaven.multiModuleProjectDirectory system propery is not set.

 

 

配置完后需要重启eclipse

相关文章:

  • 2022-12-23
  • 2021-11-04
  • 2021-11-18
  • 2021-05-08
猜你喜欢
  • 2021-09-04
  • 2021-11-18
相关资源
相似解决方案