This tutorial presents a step-by-step guide about how to install Maven plugin (m2e) for an existing Eclipse version (Juno 4.2 and older).

NOTES:Eclipse Kepler (4.3) and newer versions already have Maven integration so you don’t need to install the plug-in for this version of Eclipse.

The most popular Maven plug-in for Eclipse Java EE IDE is called Maven Integration for WTP (m2e-wtp). Installing this plug-in is easy and would take only around 5-10 minutes. Follow the steps described below:

    • In Eclipse IDE, click Help > Eclipse Marketplace… to open up the Eclipse Marketplace dialog. To search for the Maven plug-in, type m2eclipse or m2e-wtp in the Find text box and hit Enter (or switch to Popular tab), you will see Maven Integration for Eclipse WTP (Juno)in the search result as follows:Search Maven plugin

    • Click Install  button on the right. It may take a while for Eclipse to resolve the required features:install Maven plugin - resolving features

    • Then Eclipse will ask to confirm the selected features:install Maven plugin - confirm selected features

    • Click Next will bring the Review Licenses  screen:install Maven plugin - accept license

    • Select “I accept the terms of the license agreements”, and then click Finish, Eclipse will download in install the plug-in:install Maven plugin in progress

    • This may take few minutes, and after finishing the installation, Eclipse will ask to restart the IDE:install Maven plugin - ask restart

    • After the IDE has restarted, we can check for the new Maven plug-in installation by clicking Window > Preferences, and see the Maven node in the Preferences  dialog like this:


      Maven preferences

The Maven integration plug-in also provides new items in the New wizard:

Maven in new wizard

There are also new items in the Show View dialog:

Maven views

And the Maven Repositories view:

Maven Repositories view

 

 

Other Eclipse Tutorials:


About the Author:

is certified Java programmer (SCJP and SCWCD). He began programming with Java back in the days of Java 1.4 and has been passionate about it ever since. You can connect with him on Facebook and watch his Java videos on YouTube.



Add comment

   


Comments 

#5David2020-04-17 11:05
after installation, Maven does not show in Preference menu. Why
Quote
#4balakrishnan2016-10-06 06:09
i got it thanks for sharing
Quote
#3chandan kumar2015-04-16 00:52
Thinking you
Quote
#2Neeraj2015-03-26 13:24
Great instructions for adding Maven plugin to Juno. It worked very well.
Quote
#1Devi2014-12-09 02:07
Very nice explanation.
Thank for sharing.
Quote