mvn command is not recognized as an internal or external command

even though I have configured %m2_home% and %path% correctly, the command "mvn" is still not recognized.

use command echo to output the system environment variables, everything is find, there is no typo issue of ";" and "".

How to resolve:

in %path%, use the absolute uri instead of "%m2_home%in", that is, using "C:your install pathin".

原文地址:https://www.cnblogs.com/haibinyuan/p/5085842.html