mvn command is not recognized as an internal or external command

前端 未结 22 2475
执念已碎
执念已碎 2020-12-30 19:20

I am getting the mvn command not recognized as an internal or external command.

I have setup the M2_HOME, JAVA_HOME and added %M2_HOME%/bin to the path

22条回答
  •  忘掉有多难
    2020-12-30 19:50

    For Windows you need to do the following:

    1. Windows and type env

    2. Open the edit environment panel

    3. Click Environment Variables

    4. In the system variables section, double click Path

    5. In the dialog, create a System Variable under Path like below ->

      MVN_HOME: C:\Users\Documents\Project\Software\apache-maven-3.6.3\bin

    6. Open a new command prompt and hit mvn, you should be able to now.

提交回复
热议问题