O'Reilly logo

Maven for Eclipse by Sanjay Shah

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up Maven for use

m2eclipse comes with an embedded Maven component in it, so the external Maven installation discussed in Chapter 1, Apache Maven – Introduction and Installation, is optional. However, to use the latest version of Maven, we are required to install Maven externally, as discussed in the previous chapter. We also need to make sure our m2eclipse plugin uses it. Also, the use of continuous integration servers nowadays requires us to have a common Maven version across servers, thus making use of the externally installed Maven.

To make m2eclipse use the external Maven version, navigate to Window | Preference in Eclipse and the Preference window appears. Search for maven in the search box in the left pane and click on Installations ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required