I am trying to launch maven project from command line but when i try using mvn --version or any other maven command it comes up with below error message
mvn is not recognized as internal or external command
I am trying to launch maven project from command line but when i try using mvn --version or any other maven command it comes up with below error message
mvn is not recognized as internal or external command
Maven is not installed in your OS. Please follow instructions from the following link http://maven.apache.org/download.cgi#Installation
Let's say you installed Maven to D:\tools\apache-maven-3.0.3
...
then your system environment PATH needs to contain the string
D:\tools\apache-maven-3.0.3\bin
which should be separated from the other path entries using the path separator: ;
And, BTW, you don't need to set MAVEN_HOME
or M2_HOME
.
On my win7 system, I just put Maven's bin-folder on the path and set up a JAVA_HOME
environment variable that points to an installation folder of a JDK ( e.g. D:\tools\jdk7u15
), that's all.
just change M2 AND M2_HOME from user variables into system variables in advanced settings. it worked well with me.