Eclipse error setting up Maven project for class exercise: Check $M2_HOME environment variable and mvn script match

前端 未结 7 1167
忘掉有多难
忘掉有多难 2020-12-24 08:16

I have found a few related questions on this, but they\'re all related to Intellij or on Mac OS. I\'m on Windows 8.1 and using Eclipse:

Eclipse Java EE IDE f

7条回答
  •  不思量自难忘°
    2020-12-24 08:54

    Access the following location in eclipse

    Window
      Preference
        Java
          Installed JREs
    

    Now edit Default VM arguments and place below arguments according to your OS type.

    If Windows,

    -Dmaven.multiModuleProjectDirectory=M2_HOME
    

    If Linux,

    -Dmaven.multiModuleProjectDirectory=$M2_HOME
    

提交回复
热议问题