eclipse 无法为 Juno 的 EGit 安装 Maven SCM 处理程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11707971/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 18:41:27  来源:igfitidea点击:

Can't install Maven SCM Handler for EGit for Juno

eclipseegitm2eeclipse-juno

提问by Ittai

I've updated my eclipse indigo to juno via the Help->Check for updates menu. I noticed I had updates for egit (2.x) and jgit (2.x) which clashed with my current installations (1.3.x) and so I removed all my egit plugins (eigt,jgit,egit-mylyn and Maven SCM Handler for EGit). I then tried to install the above egit plugins and was able to install egit and jgit but was unable to install Maven SCM Handler for EGit.
I tried updating grvia the m2e marketplace and got the following error:

我已经通过“帮助”->“检查更新”菜单将我的 eclipse indigo 更新为 juno。我注意到我有 egit (2.x) 和 jgit (2.x) 的更新,它们与我当前的安装 (1.3.x) 发生冲突,所以我删除了所有 egit 插件(eigt、jgit、egit-mylyn 和 Maven SCM 处理程序EGit)。然后我尝试安装上述 egit 插件,并且能够安装 egit 和 jgit,但无法为 EGit 安装 Maven SCM 处理程序。
我尝试更新 m2e 市场的 grvia 并收到以下错误:

Cannot complete the install because of a conflicting dependency.
Software being installed: Maven SCM Handler for EGit 0.14.0.201110251725 (org.sonatype.m2e.egit.feature.feature.group 0.14.0.201110251725)
Software currently installed: Eclipse EGit 2.0.0.201206130900-r (org.eclipse.egit.feature.group 2.0.0.201206130900-r)
Only one of the following can be installed at once:
Git Team Provider Core 2.0.0.201206130900-r (org.eclipse.egit.core 2.0.0.201206130900-r)
Git Team Provider Core (Incubation) 0.8.4 (org.eclipse.egit.core 0.8.4)
Git Team Provider Core 1.1.0.201109151100-r (org.eclipse.egit.core 1.1.0.201109151100-r)
Git Team Provider Core 1.3.0.201202151440-r (org.eclipse.egit.core 1.3.0.201202151440-r)
Git Team Provider Core (Incubation) 0.11.1 (org.eclipse.egit.core 0.11.1)
Git Team Provider Core (Incubation) 0.9.1 (org.eclipse.egit.core 0.9.1)
Git Team Provider Core 1.0.0.201106090707-r (org.eclipse.egit.core 1.0.0.201106090707-r)
Cannot satisfy dependency:
From: Eclipse EGit 2.0.0.201206130900-r (org.eclipse.egit.feature.group 2.0.0.201206130900-r)
To: org.eclipse.egit.core [2.0.0.201206130900-r]
Cannot satisfy dependency:
From: Maven SCM Handler for EGit 0.14.0.201110251725 (org.sonatype.m2e.egit 0.14.0.201110251725)
To: bundle org.eclipse.egit.core [1.0.0,2.0.0)
Cannot satisfy dependency:
From: Maven SCM Handler for EGit 0.14.0.201110251725 (org.sonatype.m2e.egit.feature.feature.group 0.14.0.201110251725)
To: org.sonatype.m2e.egit [0.14.0.201110251725]

由于依赖冲突,无法完成安装。
正在安装的软件:Maven SCM Handler for EGit 0.14.0.201110251725 (org.sonatype.m2e.egit.feature.feature.group 0.14.0.201110251725)
当前安装的软件:Eclipse EGit 2.0.0.2019feature.eclipse06r3019feature.eclipse0613git group 2.0.0.201206130900-r)
一次只能安装以下之一:
Git Team Provider Core 2.0.0.201206130900-r (org.eclipse.egit.core 2.0.0.201206130900-r)
Git Team Provider Core ( Git Team Provider Core 2.0.0.201206130900-r (org.eclipse.egit.core 2.0.0.201206130900-r) Git Team Provider Core0.Incubation 4 (org.eclipse.egit.core 0.8.4)
Git 团队提供者核心 1.1.0.201109151100-r (org.eclipse.egit.core 1.1.0.201109151100-r)
Git 团队提供者核心 1.3.0.201202151444 egit.core 1.3.0.201202151440-r)
Git Team Provider Core (Incubation) 0.11.1 (org.eclipse.egit.core 0.11.1)
Git Team Provider Core (Incubation) 0.9.1 (org.eclipse.egit.core 0.9.1)
Git Team Provider Core 1.0。 0.201106090707-r (org.eclipse.egit.core 1.0.0.201106090707-r)
无法满足依赖:
来自:Eclipse EGit 2.0.0.201206130900-r (org.eclipse.egit.feature.group 2.010201.group 2.010301.org
. eclipse.egit.core [2.0.0.201206130900-R]
无法满足依赖性:
来自:Maven的SCM处理程序为例如:It 0.14.0.201110251725(org.sonatype.m2e.egit 0.14.0.201110251725)
收件人:束org.eclipse.egit.core [1.0 .0,2.0.0)
不能满足依赖:
来自:用于 EGit 的 Maven SCM 处理程序 0.14.0.201110251725 (org.sonatype.m2e.egit.feature.feature.group 0.14.0.201110251725)
至:org.sonatype.m2e.egit [0.14.0152511717

I guessed from the error that the artifact which is in the marketplace is not yet up-to-date and so I tried to download the latest m2e-git from the nexus repositorybut I didn't really knew what to do with it.
I placed the contents in a subdirectory of the plugins folder and did not see it appear in the "what is installed" dialog so I'm assuming it didn't work.
Has anyone managed to get this to work?

我从错误中猜测市场上的工件尚未更新,因此我尝试从nexus 存储库下载最新的 m2e-git,但我真的不知道如何处理它。
我将内容放在插件文件夹的子目录中,但没有看到它出现在“安装了什么”对话框中,所以我假设它不起作用。
有没有人设法让这个工作?

回答by jonathan.cone

Yes, this has been an issue for other m2e connectors as well since Juno was released. I've posted the steps that I used to get around this issue here.

是的,自从 Juno 发布以来,这也一直是其他 m2e 连接器的问题。我已经在这里发布了我用来解决这个问题的步骤。

Here are the instructions:

以下是说明:

  1. Click Help
  2. Click Install New Software
  3. Uncheck the box labeled Group items by category(this step is important or you won't see the connector in the table)
  4. Paste in this URL http://repository.tesla.io:8081/nexus/content/sites/m2e.extras/m2eclipse-egit/0.14.0/N/0.14.0.201305250025/
  5. Finish the plugin install wizard and restart the workspace
  1. 点击帮助
  2. 点击安装新软件
  3. 取消选中标记为按类别分组项目的框(此步骤很重要,否则您将不会在表中看到连接器)
  4. 粘贴此 URL http://repository.tesla.io:8081/nexus/content/sites/m2e.extras/m2eclipse-egit/0.14.0/N/0.14.0.201305250025/
  5. 完成插件安装向导并重新启动工作区

回答by dnang

This will work for Eclipse 4.3 (Kepler): http://repository.tesla.io:8081/nexus/content/sites/m2e.extras/m2eclipse-egit/0.14.0/N/0.14.0.201305250025/

这将适用于 Eclipse 4.3(开普勒):http: //repository.tesla.io: 8081/nexus/ content/sites/m2e.extras/m2eclipse-egit/0.14.0/N/ 0.14.0.201305250025/

Remember to uncheck the box labeled Group items by category

请记住取消选中标记为按类别分组项目的框

回答by Michael Wyraz

I took the code from git and created a build that works with keppler + m2eclipse 0.14 + egit 3.x.

我从 git 中获取代码并创建了一个与 keppler + m2eclipse 0.14 + egit 3.x 一起使用的构建。

Use this update URL: https://github.com/micw/m2eclipse-egit-builds/raw/master/0.14.0.201401300919/

使用此更新网址:https: //github.com/micw/m2eclipse-egit-builds/raw/master/0.14.0.201401300919/

Don't forget to uncheck "Group items by category" or you won't see the package in eclipse's software manager.

不要忘记取消选中“按类别分组项目”,否则您将不会在 eclipse 的软件管理器中看到该包。

Update 2014-01-30: I built the latest git version which allows to be used with any EGit 3.x version. Please use the new update URL in this post. I verified that it works with latest EGit 3.2.x

2014-01-30 更新:我构建了最新的 git 版本,它允许与任何 EGit 3.x 版本一起使用。请使用此帖子中的新更新 URL。我确认它适用于最新的 EGit 3.2.x

回答by Ananth

I was able to get it working with the following configuration.

我能够使用以下配置使其工作。

  • Eclipse Luna SR1 Eclipse
  • Egit Team Provider 3.7.0 (I had updated the plugin via eclipse marketplace)
  • M2E egit 0.14 (Installed via eclipse marketplace).
  • Eclipse Luna SR1 Eclipse
  • Egit Team Provider 3.7.0(我已经通过 eclipse 市场更新了插件)
  • M2E egit 0.14(通过 eclipse 市场安装)。

Initially I was also getting the error while installing m2e-egit but once I updated the Egit eclipe plugin, installation of m2e-egit worked perfectly.Hope it helps.

最初我在安装 m2e-egit 时也遇到了错误,但是一旦我更新了 Egit eclipe 插件,m2e-egit 的安装就完美了。希望它有帮助。