Installing maven: maven is free for download and use for commercial and non-commercial purpose. Steps to install maven:
1. Download and unzip the latest Maven version. You can find it at http://maven.apache.org/
2. Set the MAVEN_HOME environment variable to the directory where you installed Maven. e.g.: MAVEN_HOME=C:\Program Files\Maven 1.0.2
3. Add the bin directory to your path. e.g.: PATH=%PATH%;%MAVEN_HOME%\bin
4. To check if maven is installed properly execute the "maven -v" command which will show you the maven version.
To set up your project with maven: