I am getting the mvn command not recognized as an internal or external command.
mvn
I have setup the M2_HOME, JAVA_HOME and added %M2_HOME%/bin to the path
For me it was not working since I was editing Path variable in "User variable" and adding it under "System variable" made it work. Hope it helps.