Wednesday 11 July 2012

How to install Maven on Windows

                          How to install Maven on Windows

Apache Maven is not require to install on Windows as a service component, you just need to download the Maven’s zip file, extract it and configure the Windows environment path variable. See following steps :
First we need to set the JAVA Path for use the Maven.

1. Add JAVA_HOME

Make sure you had installed JDK, and add a new “JAVA_HOME” into Windows environment variable, and point to your JDK folder.

2. Download Apache Maven

Download Apache Maven zip file from this official website, e.g apache-maven-3.0.4-bin.zip.

3. Extract It

Extract the downloaded zip file, for instance, "E:\apache-maven-3.0.4".


4. Add MAVEN_HOME


Now, add Maven folder "MAVEN_HOME" to Windows environment variable also.


5. Add PATH

Add the "Maven bin folder" into Windows environment variable, so that you can access Maven command everywhere.

6. Verification

Done, to verify it, in command prompt, type "mvn –version" to verify the installation detail.
If you see similar message, means your Apache Maven is installed successful on Windows.

No comments:

Post a Comment