How to install Maven in Windows
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.
- Java Core Technology - Java RegEx, Java XML, Java I/O, Java Misc
- J2EE Frameworks - Hibernate, Spring 2.5, Spring MVC, Struts 1.x, Struts 2.x
- Build Tools - Maven, Archiva
- Unit Test - jUnit, TestNG
- Client Scripts - jQuery
[...] Install Maven in Windows environment Article about how to install Maven in Windows environment. [...]
please
i did the steps and every thing is ok
but it does not show the lines :
Java home: C:\Program Files\Java\jdk1.6.0_13\jre
Default locale: en_US, platform encoding: Cp1252
please i need to know how to make it see java home.
Article updated for prerequisite requirement. It look like you have no JDK install or doesn’t configure the JAVA_HOME environment variable in Windows.
[...] How to install Maven in Windows or How to install Maven in Ubuntu [...]