[How to]Integrating Maven with Eclipse

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 https://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) 0.12.0.20101115-1102 (org.maven.ide.eclipse.feature.feature.group 0.12.0.20101115-1102) Missing requirement: Maven Integration for Eclipse (Required) 0.12.0.20101115-1102 (org.maven.ide.eclipse.feature.feature.group 0.12.0.20101115-1102) 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.

Published 17 Oct 2011

I build mobile and web applications. Full Stack, Rails, React, Typescript, Kotlin, Swift
Pulkit Goyal on Twitter