tesla / m2eclipse-egit

Maven SCM Handler for EGit
29 stars 17 forks source link

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

Open christianbalzer opened 7 years ago

christianbalzer commented 7 years ago

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 commented 6 years ago

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 commented 6 years ago

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

neerup commented 6 years ago

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 commented 6 years ago

@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 commented 6 years ago

@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 commented 5 years ago

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 commented 5 years ago

@billson-my This works for me. Thanks.

cluick commented 5 years ago

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 commented 5 years ago

This fix worked for me. Thank you!

PyvesB commented 4 years ago

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

scottbw commented 2 years ago

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.