Wednesday, March 9, 2011

Installing Apache Maven in Windows Environment

Apache Maven is a java based project build and automation tool. since it is java based, it is required to have a valid JDK version prior to proceed with the Maven installation.Apache maven can be downloaded through Apache maven official website.  Here i am downloading and installing the Apache maven 3.0.3 version.  please follow the instructions given below for installing Maven in your windows based development environment.

 1. extract the downloaded ZIP file and copy the extracted directory (In my case, apache-maven-3.0.3 directory  ) to the C:\Program Files

2. then create the following environment variables

  M2_HOME ( values refers to the maven home directory e.g:-  C:\Program Files\apache-maven-3.0.3 )
  M2 ( value refers to the maven binary directory e.g:- C:\Program Files\apache-maven-3.0.3\bin )
  path (if this variable already exists, please append this value to the end - %M2%)

 3. now the maven is installed to your computer and you can check it through the command line as follows.

   mvn --version

 hope this will helpful for you !

Chathuranga Tennakoon

No comments:

Post a Comment