mvn command is not recognized as an internal or external command

前端 未结 22 2406
执念已碎
执念已碎 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:44

    In your Environement variable :

    new system variable:

    M2_HOME Your mvn directroy "C:\......\bin"

    new user variable:

    M2 %M2_HOME%

    edit the CLASSPATH by adding %M2%

    finally open the cmd and write

    path=%CLASSPATH%

    enjoy

提交回复
热议问题