Eclipse - Cannot complete the install because one

2019-04-07 07:19发布

问题:

I am trying to install Eclipse Git Team Provider and JGit in my version of Eclipse ADT via Help > Install New Software > "EGit - http://download.eclipse.org/egit/updates" but the installation fails with this error...

Cannot complete the install because one or more required items could not be found. Software being installed: Java implementation of Git - optional Http support using Apache httpclient 3.3.1.201403241930-r (org.eclipse.jgit.http.apache.feature.group 3.3.1.201403241930-r)
Missing requirement: Apache HttpComponents HttpClient OSGi bundle 4.1.3.v201209201135 (org.apache.httpcomponents.httpclient 4.1.3.v201209201135) requires 'package org.apache.commons.codec.binary 1.4.0' but it could not be found Cannot satisfy dependency: From: Java implementation of Git - optional Http support using Apache httpclient 3.3.1.201403241930-r (org.eclipse.jgit.http.apache.feature.group 3.3.1.201403241930-r) To: org.apache.httpcomponents.httpclient [4.1.3.v201209201135]

It's saying I need to install either org.apache.httpcomponents.httpclient 4.1.3.v201209201135 or package org.apache.commons.codec.binary 1.4.0 (although, I'm not clear which one is missing, or whether both are missing?)...

How do I add it/them to Eclipse?

I can find lots of info on how to add jars to the library of an individual project, but that's not what I need as I think (correct me if I'm wrong) that I need to add them to Eclipse via Help > Install New Software.

And I have seen lots of people post similar problems with other dependencies, but have not found an answer that explains how to add this particular software.

I'm new to Eclipse, so any help would be much appreciated.

回答1:

I have found a solution to this problem, at least on my installation of Eclipse.

What I did was get the name of the missing package and googled it.

  1. Download the package from here: http://commons.apache.org/proper/commons-codec/download_codec.cgi Selecting the package under the "Binaries" section

  2. Unzip the file and extract "commons-codec-1.9.jar"

  3. Copy this Jar file to your Eclipse installation directory "Eclipse\plugins"

  4. Rename it with the name of your missing package. (In my case "org.apache.commons.codec.binary_1.4.0.jar")

  5. Now repeat the steps to install EGit and it should work.

Obviously there are many things that could be different with your installation, I am using Eclipse version 4.2.0

I hope this helps.



回答2:

I'm using Eclipse SDK Version: 4.2.2 and I faced the same problem as user1617737.

It's a little obscure but I dare say the missing dependency is 'package org.apache.commons.codec.binary 1.4.0'. I guess there is a problem with this JAR file in the EGit package itself.

Anyway, I was unable to find a solution, other than unmarking the following component to be installed:

Java implementation of Git - optional Http support using Apache httpclient 3.3.2.201404171909-r

In this way, EGit has been installed, though I don't know what features I may be missing.



回答3:

I had the same problem. I deleted an older version of org.apache.commons.codec.binary from the clipse/plugins directory. And placed the required "org.apache.commons.codec.binary 1.4.0.jar". Then it worked.



回答4:

I gave up in the end and used Eclipse Kepler, which worked fine.

Would be nice to know the solution though to the original problem if anyone knows it. I'm sure others will also get this problem.



回答5:

I have the same problem with Eclipse Indigo Version: 3.7.2. I tried to install older versions of EGit but still I had other problems. Finally EGit version 1.3 was installed with success.



回答6:

The same error i was getting ,

Cannot complete the install because one or more required items could not be found.
  Software being installed: m2e - Maven Integration for Eclipse (includes Incubating components) 1.8.1.20170728-1531 (org.eclipse.m2e.feature.feature.group 1.8.1.20170728-1531)
  Missing requirement: Maven Integration for Eclipse 1.8.1.20170728-1531 (org.eclipse.m2e.core 1.8.1.20170728-1531) requires 'bundle org.eclipse.osgi 3.10.0' but it could not be found
  Cannot satisfy dependency:
    From: Maven Integration for Eclipse 1.8.1.20170728-1531 (org.eclipse.m2e.core.ui 1.8.1.20170728-1531)
    To: bundle org.eclipse.m2e.core [1.8.1,1.9.0)
  Cannot satisfy dependency:
    From: m2e - Maven Integration for Eclipse (includes Incubating components) 1.8.1.20170728-1531 (org.eclipse.m2e.feature.feature.group 1.8.1.20170728-1531)
    To: org.eclipse.m2e.core.ui [1.8.1.20170728-1531]

i had putted my solution here . It should solve your issue Install maven in eclipse 3.8 in Ubuntu