Apache Maven is not required to install in Windows as service, you just need to download the Maven zip fle and extract it.

1. Install JDK

Installed JDK, and add a new “JAVA_HOME” into Windows environment variable, and point to your JDK folder.

2. Download Apache Maven

Download the Apache Maven from the official website, e.g apache-maven-2.2.1-bin.zip.

3. Extract It

Extract the zip file into your folder, e.g C:\apache-maven-2.1.0.

P.S No installation is needed in Windows

4. Add to Windows Path

Add the Maven bin folder into Windows Environment variable, for global access.

5. Verification

In command prompt, type “mvn –version” to verify the installation

C:\Documents and Settings\snake>mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-07 03:16:01+0800)
Java version: 1.6.0_13
Java home: C:\Program Files\Java\jdk1.6.0_13\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

You Apache Maven is installed successful in Windows.

This article was posted in Maven category.