eclipse中使用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

eclipse中使用Maven插件报错:-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.

  3.添加 -Dmaven.multiModuleProjectDirectory=$M2_HOME

eclipse中使用Maven插件报错:-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.

  4. 神圣的一步:Finish

上一篇:Combination Sum | & || & ||| & IV


下一篇:android: 发送自定义广播