Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to install m2e-egit via Eclipse Marketplace causes installation error #16

Open
christianbalzer opened this issue May 15, 2017 · 11 comments

Comments

@christianbalzer
Copy link

Steps to reproduce:
File > Import... > Maven > Check out maven project from SCM > Next > m2e Marketplace Link > Find: EGit > Select: m2e-egit > Finish > Next > Finish

Error message:

An error occurred while collecting items to be installed
session context was:(profile=_java_eclipse_Eclipse.app_Contents_Eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.net4j.jms.api,3.0.0.v20110215-1551
No repository found containing: osgi.bundle,org.springframework.roo.wrapping.protobuf-java-lite,2.3.0.0001

I also posted a copy here, before I saw this github project:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=516673

@fcarsten
Copy link

Just got this error with a clean install of Eclipse Photon:
Operation details
Cannot complete the install because one or more required items could not be found.
Software being installed: Maven SCM Handler for EGit 0.14.0.201509090157 (org.sonatype.m2e.egit.feature.feature.group 0.14.0.201509090157)
Missing requirement: Maven SCM Handler for EGit 0.14.0.201509090157 (org.sonatype.m2e.egit 0.14.0.201509090157) requires 'osgi.bundle; org.eclipse.egit.core [3.0.0,5.0.0)' but it could not be found
Cannot satisfy dependency:
From: Maven SCM Handler for EGit 0.14.0.201509090157 (org.sonatype.m2e.egit.feature.feature.group 0.14.0.201509090157)
To: org.eclipse.equinox.p2.iu; org.sonatype.m2e.egit [0.14.0.201509090157,0.14.0.201509090157]

@ghost
Copy link

ghost commented Aug 5, 2018

Is there any work around for the erro @fcarsten mentioned?

@neerup
Copy link

neerup commented Aug 7, 2018

ericmataias

Add
http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-egit/0.15.1/N/LATEST/
Maven SCM Handler for EGit Repository

To Your update sites

@fcarsten
Copy link

fcarsten commented Aug 7, 2018

@neerup workaround does not work for me. I added the suggested URL and tried installing m2e-egit again. I now get the following (slightly different error):

Operation details
Cannot complete the install because of a conflicting dependency.
Software being installed: Maven SCM Handler for EGit 0.14.0.201509090157 (org.sonatype.m2e.egit.feature.feature.group 0.14.0.201509090157)
Software currently installed: Git integration for Eclipse 5.0.0.201806131550-r (org.eclipse.egit.feature.group 5.0.0.201806131550-r)
Only one of the following can be installed at once:
Git integration for Eclipse - Core 4.9.2.201712150930-r (org.eclipse.egit.core 4.9.2.201712150930-r)
Git integration for Eclipse - Core 5.0.0.201806131550-r (org.eclipse.egit.core 5.0.0.201806131550-r)
Cannot satisfy dependency:
From: Git integration for Eclipse 5.0.0.201806131550-r (org.eclipse.egit.feature.group 5.0.0.201806131550-r)
To: org.eclipse.equinox.p2.iu; org.eclipse.egit.core [5.0.0.201806131550-r,5.0.0.201806131550-r]
Cannot satisfy dependency:
From: Maven SCM Handler for EGit 0.14.0.201509090157 (org.sonatype.m2e.egit 0.14.0.201509090157)
To: osgi.bundle; org.eclipse.egit.core [3.0.0,5.0.0)
Cannot satisfy dependency:
From: Maven SCM Handler for EGit 0.14.0.201509090157 (org.sonatype.m2e.egit.feature.feature.group 0.14.0.201509090157)
To: org.eclipse.equinox.p2.iu; org.sonatype.m2e.egit [0.14.0.201509090157,0.14.0.201509090157]

@neerup
Copy link

neerup commented Aug 8, 2018

@fcarsten From a clean install of Photon I just added the above Update site and installed the m2e extensions -> Maven SCM Handler for EGit from the Install New Software... menu.
No need for the Marketplace

@billson-my
Copy link

billson-my commented Jul 9, 2019

ericmataias

Add
http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-egit/0.15.1/N/LATEST/
Maven SCM Handler for EGit Repository

To Your update sites

Just installed.
After open eclipse(my case, photon)

Help > Install New Software... > Add..

Name: m2eclipse-egit
Location: http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-egit/0.15.1/N/LATEST/

Then in "Work with:" drop down select the "new location just added, then m2e extensions display as: "Maven SCM Handler for EGit"

@fcarsten
Copy link

@billson-my This works for me. Thanks.

@cluick
Copy link

cluick commented Aug 14, 2019

I have the same issue when I try to install the m2eclipse-egit connector in Eclipse 2019-06 and the solution mentioned above also works for me. But is it possible to update the m2e discovery catalog so that Eclipse users can install m2eclipse-egit "out of the box"?

@praveenshukla
Copy link

This fix worked for me. Thank you!

@PyvesB
Copy link

PyvesB commented Nov 21, 2019

I submitted a pull request to update the catalog entry (see link above). This should fix the issues reported here. 😉

@scottbw
Copy link

scottbw commented Dec 10, 2021

Fresh install of Eclipse 2021-12 and installation of m2e-egit fails with the following:

Cannot complete the install because one or more required items could not be found.
Software being installed: Maven SCM Handler for EGit 0.15.1.201806191431 (org.sonatype.m2e.egit.feature.feature.group 0.15.1.201806191431)
Missing requirement: Git integration for Eclipse - Core 5.13.0.202109080827-r (org.eclipse.egit.core 5.13.0.202109080827-r) requires 'java.package; org.eclipse.jgit.annotations [5.13.0,5.14.0)' but it could not be found
Cannot satisfy dependency:
From: Maven SCM Handler for EGit 0.15.1.201806191431 (org.sonatype.m2e.egit 0.15.1.201806191431)
To: osgi.bundle; org.eclipse.egit.core [3.0.0,6.0.0)
Cannot satisfy dependency:
From: Maven SCM Handler for EGit 0.15.1.201806191431 (org.sonatype.m2e.egit.feature.feature.group 0.15.1.201806191431)
To: org.eclipse.equinox.p2.iu; org.sonatype.m2e.egit [0.15.1.201806191431,0.15.1.201806191431]

Install fails whether using m2e-marketplace or 'install new software' using the 0.15.1 location.

EDIT: Can only get m2e-egit working in 2021-12 by downgrading the default eGit 6.0 installation to 5.13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants