1. Download MAVEN http://maven.apache.org/
2. Unzip it and rename it to ‘maven’
3.Set environmental variables JAVA_HOME to your Java environment, MAVEN_HOME to the directory you uncompressed, to do it on command prompt type this (Assume Ant is installed in E:\maven\.)
set MAVEN_HOME=E:\maven
set JAVA_HOME=D:\Program Files\Java\jdk1.6.0_03
set PATH=%PATH%;%MAVEN_HOME%\bin
In windows 7 you can go to Control Panel\All Control Panel Items\System or right click on Computer and then to “Advance system setting”
-Choose Advanced Tab
-Press Environtmen Variables Button
-In the System Variables, click New Button
Give the Variable Name:MAVEN_HOME Give the Value: E:\maven Click OK
Then,we’ll add new MAVEN_HOME path,
And Click again on New Button if you do not have ‘path’ Variable in there, if so select it and edit as
Give the Variable Name:path Give the Value D:\Program Files\Java\jdk1.6.0_03\bin;%MAVEN_HOME%\bin Click OK
4. Check wheter MAVEN works correctly or not.
In the command prompt, type:
mvn-version
I got Apache Maven 3.0.3
what on you?
View comments