Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Apache Maven Plugin for Eclipse

I'm currently trying to download an Apache Maven plugin for Eclipse so I can migrate a project from Ant. I've read numerous tutorial sites on how to install this plugin, and most of them offer an update site. Unfortunately, my Eclipse is not finding any of the repositories that are supposedly at the URL's I've been given. Here are some of the one's I've tried:

http://m2eclipse.sonatype.org/sites/m2e/
http://download.eclipse.org/technology/m2e/releases/
http://mevenide.codehaus.org/maven-eclipse-plugin-plugin/

Sadly, all of these haven't proven useful yet, so I'm starting to think that perhaps a certain setting is off or missing within Eclipse itself that is preventing it from finding these repositories. Sometimes, though, it tells me that it is simply unable to read a repository. For example, Eclipse spat out this error a few times when trying to use http://m2eclipse.sonatype.org/sites/m2e/:

Unable to read repository at http://m2eclipse.sonatype.org/sites/m2e/content.xml.

When this happens, it seems as though its "finding" the repository, but it just can't read it... As I've said, I've followed a handful of instructions to downloading the plugin, and none have worked thanks to this initial step. Any ideas?

like image 482
Kris Schouw Avatar asked Aug 18 '11 17:08

Kris Schouw


People also ask

Do we need to install Maven plugin in Eclipse?

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.

Is Maven inbuilt in Eclipse?

Most Eclipse IDE downloads already include support for the Maven build system. To check, use Help About and check if you can see the Maven logo (with the M2E ) sign.


2 Answers

m2eclipse has moved from sonatype to eclipse.

The correct update site is http://download.eclipse.org/technology/m2e/releases/

If this is not working, one possibility is you have an older version of Eclipse (< 3.6). The other - if you see timeout related errors - could be that you are behind a proxy server.

like image 98
Raghuram Avatar answered Sep 20 '22 14:09

Raghuram


You can install maven from m2eclipse - http://download.eclipse.org/technology/m2e/releases

like image 30
user1309573 Avatar answered Sep 18 '22 14:09

user1309573