How to install Maven on Windows
Published: November 25, 2009 , Updated: December 24, 2011 , Author: mkyong
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 :
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-2.2.1-bin.zip.
3. Extract It
Extract the downloaded zip file, for instance, “D:\maven“.
Note
That’s all , no installation is required on Windows.
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.
C:\Documents and Settings\mkyong>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"
If you see similar message, means your Apache Maven is installed successful on Windows.
P.S The version may vary in your environment.
[ Read More ] You can find more similar articles at Maven Tutorials
To Whom It May Concern,
If you have any Java questions or problems, please post at this new JavaNullPointer.com forum.
Best Regards,
mkyong
源文档 <http://www.mkyong.com/maven/how-to-install-maven-in-windows/>