mvn not an internal or external command

1, if not installed maven: you need to install / decompression maven, maven and configure the environment variables
(1) New MAVEN_HOME variables and fill in the correct path maven

(2) the system variables path and which add "% MAVEN_HOME% \ bin"

To see if the problem;

2, if the unit is installed also disposed maven environment variables, not yet been solved,

a) View maven installation path: echo% MAVEN_HOME%
b): View maven version: mvn -version
console prompt: mvn not an internal or external command

Workaround: Path added:% SystemRoot% \ system32;% SystemRoot%;% SystemRoot% \ System32 \ Wbem;

Restart cmd console can print out the normal version maven

Path path if there is an illegal character nor

Extra: cmd in the Run mvn -v version information can be displayed maven, but actually in the console prompt IDEA does not recognize the command maven, this situation IDEA can run as an administrator.


Published 19 original articles · won praise 6 · views 10000 +

Guess you like

Origin blog.csdn.net/P502520/article/details/86719955