I want to create a Tapestry Skeletion Project. I follow to these guide: http://maven.apache.org/download.html#Installation, http://juanjoefe.com/tutoriales/instalar-maven-en-windows-7/ and other guides on the internet.
But, when I type "mvn --version" or "mvn -version", I always receive error "mvn
is not recognized as an internal or external command, operable program or batch file.
My friends use Windows 7 x86, and they had no problem. How can I install Maven 3.0.3 on Windows 7 x64?
Yucca
Setting up Maven 3.0.4 in Windows 7 64 bit
Right Click My Computer --> Properties --> Advanced System Properties --> Environment Variables --> System Variables
Click New
Add
Assuming JAVA_HOME is already setup.
Edit Path environment Variable and add
%M2%
as;%M2%
at the end of the existing pathexample:
Apply and Close the System Properties
Open a new command prompt and type
mvn --version
Following will be the message,
You must add the directory containing the mvn executable to your PATH environment variable.
You can also have multiple Maven installations in your PATH like I do:
The first Maven bin (Maven 3), is used before my previous (Maven 2).
Windows sort all variables by alphabet. Don't use multiple elements to construct path to maven like M2 for folder /bin and M2_HOME for root folder JUST take full path to \bin directory of maven and put it in the Path variable