-->

Error: m2e Install In Eclipse

2019-01-08 06:17发布

问题:

I've been attempting to install Maven Integration for Eclipse and I've received these errors.

    Cannot complete the install because one or more required items could not be found.
  Software being installed: m2e - slf4j over logback logging (Optional) 1.4.0.20130601-0317 (org.eclipse.m2e.logback.feature.feature.group 1.4.0.20130601-0317)
  Missing requirement: Maven Integration for Eclipse 1.4.0.20130601-0317 (org.eclipse.m2e.core.ui 1.4.0.20130601-0317) requires 'bundle org.slf4j.api 1.6.2' but it could not be found
  Cannot satisfy dependency:
    From: m2e logback appender 1.4.0.20130601-0317 (org.eclipse.m2e.logback.appender 1.4.0.20130601-0317)
    To: bundle org.eclipse.m2e.core.ui [1.4.0,1.5.0)
  Cannot satisfy dependency:
    From: m2e - slf4j over logback logging (Optional) 1.4.0.20130601-0317 (org.eclipse.m2e.logback.feature.feature.group 1.4.0.20130601-0317)
    To: org.eclipse.m2e.logback.appender [1.4.0.20130601-0317]

My process has been Help >> EclipseMarketplace >> Search "Maven Integration for Eclipse" >> Install (m2e)

Please help.

Edit

After running into a plethora of issues, the decision was made to uninstall Eclipse Indigo 3.6.2 and install Indigo 3.7 (as per the standards of the company I currently work at). After taking this course of action, all issues with installations (maven and otherwise) were resolved.

回答1:

I ran into a similar issue today and found that this question also has recently been asked and answered at the atlassian forum as well. My solution was to install slf4j based on guidelines from this blog post about "SLF4J Logging in Eclipse Plugins".

To extract, here is what I did:

  1. Eclipse -> Help -> Install New Software
  2. Add a new software site:
    • Name: slf4j
    • Url: http://www.fuin.org/p2-repository/
  3. Expand "Maven osgi-bundles" and select "slf4j-api"
  4. Click "Next" and follow the installation.

After the installation has completed (and Eclipse has been restarted) I was then able to install the maven plugin.

UPDATE:

Some of the other answers in this thread now contain links to offical package repositories. I haven't tested if they are working, but if you would prefer to use an official repository, now you know where to find them :)



回答2:

Use the software update site as http://download.eclipse.org/technology/m2e/releases/1.0 That worked for me and got away with the exact same error message.



回答3:

Plugin team has created a fix for m2e 1.4 & Eclipse Indigo (with this precision : Indigo is no longer officially supported for m2e) :

P2 repository : http://download.eclipse.org/technology/m2e/releases-for-indigo/1.4/

Reference : m2e-users mailing list



回答4:

Using Helios, and I used this repository to download Maven Integration For Eclipse with no problems.

http://download.eclipse.org/technology/m2e/releases/1.3



回答5:

That mean the folder eclipse/plugins missing "org.slf4j.api_1.6.4.v20120130-2120.jar", so you need copy the file to eclipse/plugins!



回答6:

Ubuntu 13.04, Eclipse 3.8.1. For Step 3 all I had to do was add the main juno download site: http://download.eclipse.org/releases/juno and m2e can be installed from there.



回答7:

If you're using eclipse Indigo -- It seems to be missing many files. If you download eclipse Kepler it seems to have the files that are lacking in Indigo. May suggest to switch.



回答8:

This is because maven 1.5 is not compatible with current eclipse version. So we need to use maven 1.4 or 1.3

Steps to install maven 1.4 is below

1)Click Help in eclipse

2)Install New Software

3)Url for the location of site is "http://download.eclipse.org/technology/m2e/releases"

4)Uncheck the checkbox "Show only the latest versions of available software" if do not uncheck the checkbox it will only latest version and do not show maven 1.4.

5)Select m2e and slf4j of 1.4 version and click next.



回答9:

I had this problem with the latest version of eclipse Indigo 64bit. I solved installing the latest version of eclipse Juno 64bit.



回答10:

You can find the org.slf4j.api 1.6.4/1.7.2 on the Orbit repository, which is more reliable than other third party repositories.



回答11:

The reason Maven can't resolve slf4j is because Maven can't find it in available software site. That is why the suggestion of @Lasse to use another software site works. I would like to point out that the basic root cause is because the atlassian documentation is out-of-date now. So we can just use the latest version of Maven. Reference: Maven for Eclipse (M2E) Installation error