Install Maven Plugin for Eclipse

Installing a Maven Plugin for Eclipse can be a bit tricky if you want to get the whole spectrum of features. By default you would go to “Eclipse -> Help -> Software Updates -> Find and Install”, then “Search for new features to install”, then click on “New Remote Site”, and enter the Maven Projects name (e.g. Maven2Plugin) and its home URL there “http://m2eclipse.codehaus.org/“.

Once you install it at first everything would seem quite right. However, if you try “Import” a Maven Project, you will not see such an option in under the “General” menu, since it would be missing.

The reason for that is that “http://m2eclipse.codehaus.org/” brings in an old version of the plugin. (At the moment of writing) It brings in “Maven 2 Plugin 0.0.9″, whereas what you need is 0.0.12.

Hence you read the “Maven Integration for Eclipse” installation guide and point your “New Remote Site” to “http://m2eclipse.codehaus.org/update/” instead of “http://m2eclipse.codehaus.org/“. The one thing to be cautious about is an “update” link will try to also bring “subclipse” and “mylin” projects, hence you will need to “uncheck” them if you do not want to bring them:

Choosing only Maven dependency while installing Maven Plugin for Eclipse

Happy Maving everybody! :)

26 comments

  1. “happy maving” – I like that ;)

  2. Does the father of Maven Plugin approves this way of installing it?

  3. Yes, Keil – if you are talking about Eugene Kuleshov, he does approve, and actually recommends it here:
    http://archive.m2eclipse.codehaus.org/user/13322428.post%40talk.nabble.com

    He misses a slight detail of de-selecting subclipse from dependencies, but it is an easy thing to spot on your own. I was just as explicit as possible in the article, so new Eclipsers shall not struggle.

  4. que buena onda.. ya lo tengo instalado…

  5. Quite simple and impressive.

    Thanks,

  6. very simple ! thanks!

  7. hic! why don’t i plugin maven for eclipse complete?

    respone:
    not found repository at http://m2eclipse.codehaus.org/update/

  8. Douglas Pindula

    It starts to install the plugin, but it suddenly breaks, telling that a jar wasn’t found in the repository!

  9. Fábio Somália

    It happens to me too. The IDE always return a message like “no repository found at (url)”. what a hell is this?

  10. Thanks buddy,

    it’s very simple and impressive….:p

  11. Addresses you’ve given does not open. I wonder if the problem did he? So are did he you?

  12. bilişim haberleri

    was simple and straightforward. ‘ll make a note works. thanks

  13. Christian Macedo

    Note that the install instructions have changed somewhat, and codehaus doesn’t seem to exist. Try following these: http://m2eclipse.sonatype.org/installing-m2eclipse.html

  14. It starts to install the plugin, but it suddenly breaks, telling that a jar wasn’t found in the repository!

  15. what version of eclipse you use?, and if you can send me the link to download the suggested eclipse version.
    during installing the plugin i got this error..

    Network connection problems encountered during search.
    Unable to access “http://m2eclipse.sonatype.org/installing-m2eclipse.html”.
    Error parsing site stream. [The XML stream is not a valid default "site.xml" file. The root tag is not site.]
    The XML stream is not a valid default “site.xml” file. The root tag is not site.
    Error parsing site stream. [The XML stream is not a valid default "site.xml" file. The root tag is not site.]
    The XML stream is not a valid default “site.xml” file. The root tag is not site.

    and i use both links u mentioned above:
    http://m2eclipse.codehaus.org/“.
    and
    http://m2eclipse.sonatype.org/installing-m2eclipse.html
    but still get the same error.

  16. Wasim, you do not have to use http://m2eclipse.sonatype.org/installing-m2eclipse.html as the plug-in URL. Just go there and you’ll see the instructions. Basically you should use: http://m2eclipse.sonatype.org/sites/m2e

    Regards

  17. None of those links work in eclipse. Matias, the one you suggested to Wasim returns this:

    Network connection problems encountered during search.
    Unable to access “http://m2eclipse.sonatype.org/sites/m2e”.
    Error parsing site stream. [White spaces are required between publicId and systemId.]
    White spaces are required between publicId and systemId.
    Error parsing site stream. [White spaces are required between publicId and systemId.]
    White spaces are required between publicId and systemId.

  18. Thanks Wasim… its working for me….
    I m using Eclipse Helios

  19. Hi, I have been trying to install the maven plugin for eclipse. Thank you for sharing this, it helped me install maven without a problem.

  20. thanks matias

  21. @matias: thanks :D

  22. Its working on http://m2eclipse.sonatype.org/sites/m2e. Thanks Matias

tell me something...
  1. (required)
  2. (valid email - optional)
  3. Captcha
  4. (required)