mvn command is not recognized as an internal or external command

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

    This is worked for me:

    1-download apache-maven-3.3.9-bin.tar.gz file from https://maven.apache.org/download.cgi

    2-copy the folder under c:\programfiles

    3-set variables as this: M2_HOME ----- C:\Program Files\apache-maven-3.3.9 M2 ----- C:\Program Files\apache-maven-3.3.9

    add Path variable to this: ;C:\Program Files\apache-maven-3.3.9\bin

    then run the cmd as system admin

    it worked.

提交回复
热议问题