Friday, October 26, 2012

Maven Configuration


Maven Configuration


Download the maven from http://maventest.apache.org/download.html (download the latest zip file)

Extract he zip file to say D:\Maven(optional)

Create a environment variable M2_HOME with value D:\Maven\apache-maven-3.0.4

Modify the Path variable; add the entry %M2_HOME%\bin

Create a .M2 (dotM2) folder in your profile (optional, useful once you start use maven repository for your project)

 Ex: D:\Documents and Settings\Manu\.m2

Note: as . (Dot) is not allowed as first character in folder name, you need to create a folder from command prompt

Go to command prompt and run mvn –version to know maven is configured




No comments: