Wednesday, July 25, 2012

Window 7 Howto Install Apache Maven 3 Easy Visual-Guide

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;)

Apache on Windows
  1. Download Maven:

    Maven3 Binary .zip
  2. 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

  3. Open a Shell Window: Windows 7 Open Command Prompt
  4. Check if Java is Installed
    java -version

    If Not then Install Java:

    How-to Install Java JDK 7 on Windows 7
  5. 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
    Windows 7 Set-Up Environment Variables and Path for Maven
    • User Variables:
      1. JAVA_HOME = C:\Program Files\Java\jdk1.<X.Y>
      2. M3_HOME = C:\Program Files\Apache Software Foundation\apache-maven-<X.Y.Z>
      3. M3 = %M3_HOME%\bin
    • User Path:

      Path = %M3%\

  6. Test Maven Installation:
    1. Open a New Command Line Window

    2. Try to Execute:

      mvn --version