解决运行maven 出现-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.异常
1.打开Preference->Java->Installed JREs->Edit 选择一个jdk
2.点击edit
3.找到default VM arguments一栏,添加 配置:-Dmaven.multiModuleProjectDirectory=$M2_HOME