I followed all the tutorials and tried to use maven.
I run win 7, and downloaded maven 3.5.4.
I placed the zip file under c:\Maven and extract it in that location.
I navigate to Environment variables and create Variable M2, and put value %M2_HOME%\bin.
I navigate to Environment variables and create Variable M2_HOME and put value C:\Maven\apache-maven-3.5.4
I navigate to System variables and in Path I added %M2_HOME%\bin
In System variables the variable JAVA_Home has value C:\Program Files\Java\jdk1.8.0_65
What am I missing?
[][maven path]
[][java path]
[][env variable]
[][system variable]
[][java home]
[][command line]
[][maven path]
PATH
is needed which meansC:\Maven\apache-maven-3.5.4\bin
. Everything elseM2
,M2_HOME
just remove it...Of course you have to set JAVA_HOME...afterwards. Close the command line box and reopen it and trymv --version
... – khmarbaise