I've tried installing Maven to Windows 7 with poor results. Some basic info:
Maven installation directory: C:\Program Files\Apache Software Foundation\apache-maven-3.0.4
System Variable "M2_HOME
": C:\Program Files\Apache Software Foundation\apache-maven-3.0.4\
System Variable "Path
" : %M2_HOME%apache-maven\src\bin;%JAVA_HOME%\bin
If I run mvn --version
in the command path, I get the error message:
Please set the
M2_HOME
variable in your environment to match the location of the Maven installation
So at the moment the subdirectory for mvn
is not set according to the instructions, which would be %M2_HOME%\bin
. If I replace %M2_HOME%apache-maven\src\bin
with that one, I get:
mvn is not recognized as an internal or external command, operable program or batch file
In the Maven installation directory (or in the zip-file) there is no \bin
folder directly in apache-maven-3.0.4
and I wonder if there should be one?
I'm a complete novice to Maven, hopefully you guys can help.
By the way the Java command works from any directory, so I don't think that's the issue here, but I can't be sure.