[How to]Integrating Maven with Eclipse

An updated version of this post is available here.

If you are coming to this post this means you know enough about Eclispe and Maven. For those who don’t know about Maven, (from maven.apache.org) Maven, a Yiddish word meaning accumulator of knowledge, was originally started as an attempt to simplify the build processes.

Now a days most of the projects build through Maven. I use Maven2Eclispe (m2e) plug-in for using maven with Eclispe. To add this to your Eclipse follow these simple steps-

1. Go to Help(in Eclispe) click on Install New Software. Add this link http://m2eclipse.sonatype.org/sites/m2e in work with option. Tick Maven Integration for Eclipse from the check-box given below.

2. Don’t forget to tick the Contact all update sites during install to find required software
3. Click finish to complete the installation.

You might get an error saying

“Cannot complete the install because one or more required items could not be found. Software being installed: Maven Integration for Eclipse (Required) (org.maven.ide.eclipse.feature.feature.group Missing requirement: Maven Integration for Eclipse (Required) (org.maven.ide.eclipse.feature.feature.group requires ‘org.eclipse.emf.ecore.edit 0.0.0’ but it could not be found.”

This is due to it requires Eclispe Modelling Framework (EMF) for its installation but ir comes from different update site than M2Eclispe and therefore you need to add EMF framework too. To do so add download.eclipse.org/releases/helios site also and tick EMF for installation, click finish and you are DONE with it.


One response to “[How to]Integrating Maven with Eclipse

  1. Michael November 30, 2011 at 3:38 AM

    Thanks for this post!

    The only thing I had to do to make your instructions work on Eclipse Indigo was to use http://download.eclipse.org/releases/indigo.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s