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
Write the entire maven path into the Environment PATH variable.
PATH
Example:
C:\Program Files\apache-maven-3.2.3\bin;
My PATH variable wasn't reading %M2% or %M2_HOME%\bin properly, and therefore I wrote the full path into the PATH variable.
%M2%
%M2_HOME%\bin
Working.