mvn command is not recognized as an internal or external command

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

    I had the same problem. But just restarting my computer after setting up the Maven path resolved the issue.

    Variable Name: M2_Home Variable Value:C:\Apache\apache-maven-3.3.9

    Variable Name: Path Variable Value:C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%JAVA_HOME%\bin\;%M2_HOME%\bin\

提交回复
热议问题