问题发生在用eclipse执行maven项目时报错:

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

https://stackoverflow.com/questions/29330577/maven-3-3-1-eclipse-dmaven-multimoduleprojectdirectory-system-propery-is-not-s
看到原来是eclipse中maven与jdk之间还要配置一下:
-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable

In Eclipse you need to go like this.
Window-> Preference -> Java -> Installed JREs -> Edit
In the edit Default VM arguments you need to put
If you already set the maven home.
-Dmaven.multiModuleProjectDirectory=$M2_HOME

相关文章:

  • 2022-01-16
  • 2021-12-18
  • 2021-07-27
猜你喜欢
  • 2021-11-18
  • 2021-11-13
相关资源
相似解决方案