Error: m2e Install In Eclipse

2019-01-08 06:13发布

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.

11条回答
疯言疯语
2楼-- · 2019-01-08 06:33

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

查看更多
Anthone
3楼-- · 2019-01-08 06:34

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

查看更多
SAY GOODBYE
4楼-- · 2019-01-08 06:36

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.

查看更多
放我归山
5楼-- · 2019-01-08 06:37

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.

查看更多
Juvenile、少年°
6楼-- · 2019-01-08 06:38

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!

查看更多
▲ chillily
7楼-- · 2019-01-08 06:40

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:
  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 :)

查看更多
登录 后发表回答