Maven

 
 
Maven is a Java project management and project comprehension tool. It's primary goal is to make the developers life easier by providing a well defined project structure, well defined development processes to follow, and a coherent body of documentation that keeps your developers and clients apprised of what's happening with your project.

Maven is distributed at no charge for commercial or non-commercial use and is licensed under the Apache License, Version 2.0.

More information about Maven can be found at: http://maven.apache.org

The latest Maven version can be downloaded from: http://maven.apache.org/download.html







Installing Maven 3.0.4.



Information
Before you can create a Maven project you need to have internet access because Maven automatically downloads dependencies (= JAR files) from remote central repositories.

Operating system used
Windows Vista Home Premium SP 2

Software prerequisites
Maven

Procedure
  1. Download Maven, for example: apache-maven-3.0.4-bin.zip

  2. Uncompress the zip file.
    For example: C:\tools\apache-maven-3.0.4

  3. Set the M2_HOME environment variable to the directory where you installed Maven.
    For example: M2_HOME=C:\tools\apache-maven-3.0.4

  4. Add the bin directory to your path.
    For example: PATH=%PATH%;%M2_HOME%\bin

  5. Check if Maven is installed correctly.
    Type: mvn --version

    You should see (for example):

    Maven home: C:\tools\apache-maven-3.0.4
    Java version: 1.6.0_07, vendor: Sun Microsystems Inc.
    Java home: C:\tools\Java\jdk1.6.0_07\jre
    Default locale: nl_NL, platform encoding: Cp1252
    OS name: "windows vista", version: "6.0", arch: "x86", family: "windows"