-->

Maven for Eclipse 1.5.0 plugin cannot be installed

2019-03-09 20:53发布

问题:

I downloaded Eclipse Kepler and tried to install M2Eclipse from its update site.

After selecting Maven Integration for Eclipse, I clicked Next and got the following error:

Missing requirement: Maven Integration for Eclipse 1.5.0.20140606-0033 (org.eclipse.m2e.core 1.5.0.20140606-0033) requires 'bundle com.google.guava [14.0.1,16.0.0)' but it could not be found

So I searched through the internet to find out how to install the Guava Eclipse plugin. Some say it's from the Eclipse marketplace, but it cannot be downloaded. I downloaded the binary and tried to copy it to Eclipse's plugin directory. Still the same result.

cp ~/Downloads/guava-16.0.1.jar /Applications/eclipse/plugins/com.google.guava_16.0.1.v1234.jar

How do I install the m2e plugin for Kepler?

回答1:

m2e 1.5.0 requires Eclipse Luna. It will not work with Kepler or Indigo. (thanks to @HDave for the link)

So you have to use an older version of m2e under Kepler.

During installation, uncheck "Show only the latest versions of available software". Then only check the 1.4.1 version or lower version in the candidate list. It doesn't require the Guava dependency.



回答2:

Make sure you have the Luna repository in "Available Software Sites".

You can add it in : Help -> Install New Software... Then in the "Work with" input, you type http://download.eclipse.org/releases/luna/ and press enter.

After that, you should be able to install m2e with http://download.eclipse.org/technology/m2e/releases/



回答3:

You can find Guava 15 on Orbit project - "repository of bundled versions of third party libraries that are approved for use in one or more Eclipse projects". You can also directly add the Orbit project update site to your kepler installation and you'll be able to update m2e



回答4:

What has helped me for Juno release is adding http://download.eclipse.org/technology/m2e/releases/1.3/ as plugin update site. The version of Maven for Eclipse was 1.3 instead of 1.5 but, for me, this differrence was less principal than the absence of extra dependencies and extra update sites, especially that of the newer version of IDE itself.

Do you necessarily need version 1.5 or 1.3 also should be good?



回答5:

STEPS TO INSTALL MAVEN (in Eclipse):

Maven Eclipse plugin installation step by step:

  • Open Eclipse IDE

  • Click Help -> Install New Software...

  • Uncheck "Show only the latest versions of available software"

  • Click Add button at top right corner

  • At pop up: fill up Name as "M2Eclipse" and Location as"http://download.eclipse.org/technology/m2e/releases"

  • Check only one 1.4.1 Version.

  • Now click OK After that installation would be started.



回答6:

http://download.eclipse.org/technology/m2e/releases This URL does not work.

http://download.eclipse.org/technology/m2e/releases/1.3/ This one can work.