My new website on Artificial Intelligence and Machine Learning www.aimlfront.com

Installing Maven in Eclipse

To install this plugin in the Eclipse IDE.

Select Help -> Install New Software. This should display the "Install" dialog..

Paste the http://m2eclipse.sonatype.org/sites/m2e/ URL into the field named "Work with:" and press Enter.

Maven installation

Pressing Enter should cause Eclipse to update list of available plugins and components.

Select the component listed under m2eclipse: "Maven Integration for Eclipse ".

Maven installation progress

Click Next. Eclipse will then check to see if there are any issues which would prevent a successful installation.

Click Next and agree to the terms of the Eclipse Public License v1.0.

Installation Progress for maven

Click Finish to begin the installation process. Eclipse will then download and install the necessary components.

Next window for maven installation

Once the installation process is finished, Eclipse will ask you if you want to restart the IDE. Sonatype strongly recommends that you restart your IDE after installing m2eclipse. Please refer to http://m2eclipse.sonatype.org/installing-m2eclipse.html.

After finishing installation process we can find out the maven in window -> Preferences -> Maven.

Maven window in eclipse

First we need to download the maven directory from the google,then we need to add maven directory to the
maven -> Installation. After adding maven, automatically settings.xml will be mapped to global settings from installation directory like below.

Maven directory

Environment Variables for Maven

Enter Variable name and Variable value which is mentioned below.

Variable name: MAVEN_HOME
Variable value: C:\JavaInstallation\apache-maven-3.0.4
Variable name: PATH
Variable value: C:\JavaInstallation\apache-maven-3.0.4\bin
Variable name: MVN_OPTS
Variable value: -Xmx1024M -XX:MaxPermSize=512m