Installing Maven 3 on Windows

Requirements

  • Java JDK (1.4+)
  • Maven 3.x
  • Windows OS

( 1 ) Verify Java version, JDK and JAVA_HOME

  • Open command line shell
  •  Type java – version

cmd-javaIn my case I do have java 1.7

  • Make sure JAVA_HOME environment variable is already set

Java_home

 

( 2 ) Downloading Maven 3.x.x

maven-download

( 3 ) Installing Maven 3.x.x

  • unpacked Maven into any directory e.g. C:\Workspace\apache-maven-3.0.4
  • Set two environment variables—PATH and MAVEN_HOME.

 

  • Add MAVEN_HOME variable to the System variables

maven_home

  • Edit PATH variable add %MAVEN_HOME%\bin the end of the value

sys-path

 

( 4 ) Test your installation

  • Open command line window and type mvn -version

cmd-mvn-version