I installed maven as per http://maven.apache.org/download.cgi and I created the following environment variables:
JAVA_HOME : C:\Program Files (x86)\Java\jre7
M2 : %M2_HOME%\bin
M2_HOME : C:\Program Files (x86)\Apache Software Foundation\apache-maven-3.1.0
And, I prepended PATH with this:
%M2%;%JAVA_HOME%\bin;
When I try to run cmd
and enter mvn --version
it says:
'mvn' is not recognized as an internal or external command, operable program or batch file.