Can't install Maven SCM Handler for EGit for J

2020-02-16 09:00发布

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:

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]

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 repository but 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?

5条回答
混吃等死
2楼-- · 2020-02-16 09:31

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

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.

查看更多
叛逆
3楼-- · 2020-02-16 09:38

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/

Remember to uncheck the box labeled Group items by category

查看更多
叛逆
4楼-- · 2020-02-16 09:40

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.

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
查看更多
祖国的老花朵
6楼-- · 2020-02-16 09:49

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

Use this update URL: 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.

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

查看更多
登录 后发表回答