今天用Eclipse安装EGit失败:
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 4.3.1.201605051710-r (org.eclipse.jgit.http.apache.feature.group 4.3.1.201605051710-r)
Missing requirement: Apache HttpComponents HttpClient 4.3.6.v201411290715B (org.apache.httpcomponents.httpclient 4.3.6.v201411290715B) requires ‘package org.apache.commons.codec.binary 1.6.0‘ but it could not be found
Cannot satisfy dependency:
From: Java implementation of Git - optional Http support using Apache httpclient 4.3.1.201605051710-r (org.eclipse.jgit.http.apache.feature.group 4.3.1.201605051710-r)
To: org.apache.httpcomponents.httpclient [4.3.6.v201411290715B]
提示说我的Eclipse缺少:org.apache.httpcomponents.httpclient 4.3.6.v201411290715B
下载apache:http://commons.apache.org/proper/commons-codec/download_codec.cgi
选择Binaries下面的文件下载。
把"commons-codec-1.1..jar"拷贝到“Eclipse\plugins”文件夹中,并且把名称改为你需要的名称,比如我安装的时候Eclipse提示我缺少“org.apache.httpcomponents.httpclient 4.3.6.v201411290715B”,于是我把“commons-codec-1.1..jar”改为“org.apache.httpcomponents.httpclient 4.3.6.v201411290715B.jar”。
最后重启Eclipse。
如果我写的有什么不懂的,可以参考:http://stackoverflow.com/questions/23062903/eclipse-cannot-complete-the-install-because-one-or-more-required-items-could-n
另一个问题:
Your original request has been modified.
"Eclipse Git Team Provider" is already installed, so an update will be performed instead.
"Java implementation of Git" is already installed, so an update will be performed instead.
Cannot complete the install because one or more required items could not be found.
Software being installed: Git Team Provider - experimental auto-import (Incubation) 4.3.1.201605051710-r (org.eclipse.egit.ui.importer 4.3.1.201605051710-r)
Missing requirement: Import framework 0.2.0.v20151123-1229 (org.eclipse.e4.ui.importer 0.2.0.v20151123-1229) requires ‘bundle org.eclipse.core.jobs 3.7.0‘ but it could not be found
Cannot satisfy dependency:
From: Git Team Provider - experimental auto-import (Incubation) 4.3.1.201605051710-r (org.eclipse.egit.ui.importer 4.3.1.201605051710-r)
To: bundle org.eclipse.e4.ui.importer 0.1.0
这个问题产生的原因是Eclipse和EGit的版本不兼容。
Eclipse3.7或者4.2以上的选择EGit 2.3,这个我也是在国外刨的
参考网址:http://stackoverflow.com/questions/15439104/can-install-egit-missing-requirement-git-team-provider-core
如果小弟写得不对,还请各位大哥斧正,谢谢。