The Guide Show Step-by-Step How-to Install and Getting-Started with the Latest Apache Maven 3 Release for Windows 7.
As Prerequisite there is Java so Inside the Article you will find a Link to Article on Installing the Latest Oracle-Sun Java JDK 7 for Windows 7 32/64bit.
To Make the Entire Process Easier to Visualize and Retain the Article Includes the Basic Screenshots of the Essentials Steps Involved.
The Content and Details are Expressly Reduced to Give Focus Only to the Essentials Instructions and Commands and Make Tut more Easy & Digestive;)
-
Download Maven:
- Unzip into:
C:\Program Files\Apache Software Foundation\apache-maven-<X.Y.Z>
Example for Maven 3.0.4:
C:\Program Files\Apache Software Foundation\apache-maven-3.0.4
- Open a Shell Window:
- Check if Java is Installed
java -version
If Not then Install Java:
How-to Install Java JDK 7 on Windows 7 - Set-Up as Below Environment Variables and Path:
Guide to Set Windows 7 Path and Environment Variables:
How-to Setup Path and Variables on Windows 7
- User Variables:
- JAVA_HOME = C:\Program Files\Java\jdk1.<X.Y>
- M3_HOME = C:\Program Files\Apache Software Foundation\apache-maven-<X.Y.Z>
- M3 = %M3_HOME%\bin
- User Path:
Path = %M3%\
- User Variables:
- Test Maven Installation:
Open a New Command Line Window
Try to Execute:
mvn --version