Maven m2e-egit install failure under Kepler - eclipse

Today I installed Maven plugin (m2e) from eclipse markerplace. Now I want to checkout a project from github. The "Check out Maven Projects from SCM" dialog grays out the "SCM type" drop down list so I clicked on a link to install a connector for git.
I found the connecter "m2e-egit" in another dialog, so I checked it, click Finish. It fails with the following message:
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.201207041402 (org.sonatype.m2e.egit.feature.feature.group 0.14.0.201207041402)
Missing requirement: Maven SCM Handler for EGit 0.14.0.201207041402 (org.sonatype.m2e.egit 0.14.0.201207041402) requires 'bundle org.eclipse.egit.core [1.0.0,3.0.0)' but it could not be found
Cannot satisfy dependency:
From: Maven SCM Handler for EGit 0.14.0.201207041402 (org.sonatype.m2e.egit.feature.feature.group 0.14.0.201207041402)
To: org.sonatype.m2e.egit [0.14.0.201207041402]
It claims I do not have EGit installed, but I can confirm that I have installed Eclipse EGit version 3.1.0.20131021548-r from "About Eclipse Features" dialog.
Other information I can find out:
Eclipse : Kelper Service Release 1 - build id 20130919-0819
Eclipse.org - m2e : 1.4.0.20130601-0317
How can I fix this and check out my maven project from github?

The version of m2e-egit in the Marketplace is outdated and won't work with the latest version of egit. This can be fixed by manually installing the most recent version, as described in the thread Can't install Maven SCM Handler for EGit for Juno.
Click Help
Click Install New Software
Visit http://repository.tesla.io:8081/nexus/content/sites/m2e.extras/m2eclipse-egit/0.14.0/N/ and copy the URL to the most recent subdirectory.
Paste in this URL (currently http://repository.tesla.io:8081/nexus/content/sites/m2e.extras/m2eclipse-egit/0.14.0/N/0.14.0.201401060023/) and type enter, or click 'Add...' to save it for future reference
Uncheck the box labeled Group items by category (this step is important or you won't see the connector in the table)
Finish the plugin install wizard and restart the workspace

Related

Maven for Eclipse 1.5.0 plugin cannot be installed under Kepler

I downloaded Eclipse Kepler and tried to install M2Eclipse from its update site.
After selecting Maven Integration for Eclipse, I clicked Next and got the following error:
Missing requirement: Maven Integration for Eclipse 1.5.0.20140606-0033 (org.eclipse.m2e.core 1.5.0.20140606-0033) requires 'bundle com.google.guava [14.0.1,16.0.0)' but it could not be found
So I searched through the internet to find out how to install the Guava Eclipse plugin. Some say it's from the Eclipse marketplace, but it cannot be downloaded. I downloaded the binary and tried to copy it to Eclipse's plugin directory. Still the same result.
cp ~/Downloads/guava-16.0.1.jar /Applications/eclipse/plugins/com.google.guava_16.0.1.v1234.jar
How do I install the m2e plugin for Kepler?
m2e 1.5.0 requires Eclipse Luna. It will not work with Kepler or Indigo. (thanks to #HDave for the link)
So you have to use an older version of m2e under Kepler.
During installation, uncheck "Show only the latest versions of available software". Then only check the 1.4.1 version or lower version in the candidate list. It doesn't require the Guava dependency.
Make sure you have the Luna repository in "Available Software Sites".
You can add it in : Help -> Install New Software...
Then in the "Work with" input, you type http://download.eclipse.org/releases/luna/ and press enter.
After that, you should be able to install m2e with http://download.eclipse.org/technology/m2e/releases/
You can find Guava 15 on Orbit project - "repository of bundled versions of third party libraries that are approved for use in one or more Eclipse projects". You can also directly add the Orbit project update site to your kepler installation and you'll be able to update m2e
What has helped me for Juno release is adding http://download.eclipse.org/technology/m2e/releases/1.3/ as plugin update site. The version of Maven for Eclipse was 1.3 instead of 1.5 but, for me, this differrence was less principal than the absence of extra dependencies and extra update sites, especially that of the newer version of IDE itself.
Do you necessarily need version 1.5 or 1.3 also should be good?
STEPS TO INSTALL MAVEN (in Eclipse):
Maven Eclipse plugin installation step by step:
Open Eclipse IDE
Click Help -> Install New Software...
Uncheck "Show only the latest versions of available software"
Click Add button at top right corner
At pop up: fill up Name as "M2Eclipse" and Location as"http://download.eclipse.org/technology/m2e/releases"
Check only one 1.4.1 Version.
Now click OK After that installation would be started.
http://download.eclipse.org/technology/m2e/releases
This URL does not work.
http://download.eclipse.org/technology/m2e/releases/1.3/
This one can work.

m2e Subclipse Connector error - 'bundle org.tigris.subversion.subclipse.core [1.6.0,1.9.0)

I want to checkout projects with Maven. However I am unable to setup my Maven configuration with Subclipse due to this error:
Operation details
Cannot complete the install because one or more required items could not be found.
Software being installed: Maven SCM handler for Subclipse 0.13.0.201303011221 (org.sonatype.m2e.subclipse.feature.feature.group 0.13.0.201303011221)
Missing requirement: Maven SCM Handler for Subclipse 0.13.0.201303011221 (org.sonatype.m2e.subclipse 0.13.0.201303011221) requires 'bundle org.tigris.subversion.subclipse.core [1.6.0,1.9.0)' but it could not be found
Cannot satisfy dependency:
From: Maven SCM handler for Subclipse 0.13.0.201303011221 (org.sonatype.m2e.subclipse.feature.feature.group 0.13.0.201303011221)
To: org.sonatype.m2e.subclipse [0.13.0.201303011221]
Things I have tried
Uninstalling Subclipse and re-installing
Deleting my Eclipse folder all together and re-installing Using a
different workspace
Deleting all tigris folders and jar files including updating
features.xml and re-install subclipse
More details
Version Information
Eclipse Java EE IDE for Web Developers.
Version: Kepler Service Release 1
Build id: 20130919-0819
My current installed plugins are:
Subclipse 1.10.3
SonarQube 3.2.0
My TortoiseSVN is:
TortoiseSVN 1.8.4, Build 24972 - 64 Bit , 2013/11/24 11:15:39
Subversion 1.8.5, -release
apr 1.4.8
apr-util 1.5.2
serf 1.3.2
OpenSSL 1.0.1e 11 Feb 2013
zlib 1.2.8
I am also using CollabNet 1.8.5 and that does not work either.
===
Downgraded my TortoiseSVN to 1.7.12 which was an older version I had used and I am still getting the same error.
I uninstalled CollabNet SVN 1.8.5 in case it was causing a conflict, but that also did not help.
Install the latest m2eclipse update via url. since subclipse 1.10.x some updates needed to be made.
In Eclipse, open Help >> Install New Software...
Click Add...
For Name: enter m2eclipse Subclipse Integration
For Location: enter http://download.eclipse.org/technology/m2e/releases/
Click Ok, then check Maven SCM Integration and complete the
installation (ignore the warning about unsigned content)
Restart Eclipse when prompted
The answer is sinmple. The m2e connector version 0.13.x is incompatible with the subclipse version 1.10.x
Solution: Install subclipse servion 1.8.x
Go to: Help -> Install New Software...
In Work With: enter : http://subclipse.tigris.org/update_1.8.x
Select all and install
Now the installation of the m2e connector should work.
This worked for me:
Source: http://www.buluschek.com/?p=292
How to install the SCM connector:
Download zip: http://www.buluschek.com/wp-content/uploads/2013/12/org.sonatype.m2e.subclipse.feature-0.13.0-SNAPSHOT-site.zip
Unzip the file to an empty folder somewhere, remember that folder
In Eclipse:
Go to Help/Install New Software…
Click “Add…” to add a new site
In the window, click on “Local…” and choose the folder where you unzipped the site before.
The result in the Location field should look like file:/C:/theUnzipFolder/
Click OK, choose all available packages to install, and continue the installation as usual
Go to http://subclipse.tigris.org/ and use the eclipse drag and drop to install it to eclipse.
That fixed it for me. (eclipse Luna 64 bit)

Eclipse Maven: no "Checkout Maven project from SCM" option

I have to compile and run a Maven project that some colleagues of mine developed some years ago. I'm using Eclipse Helios on Microsoft Windows Server 2008.
In their documentation about how to compile it with Eclipse, I read that I have to install on my Eclipse:
Maven plugin (from http://m2eclipse.sonatype.org/sites/m2e )
Maven plugin extra (from http://m2eclipse.sonatype.org/sites/m2e-extras )
Subclipse plugin ( http://subclipse.tigris.org )
After installed these plugins, their document says to select the option "Checkout Maven Project from SCM" and other operations.
I've tried to install these plugins, but, first, I realized that they are antiquated.
I discovered that Maven Plugin changed name and address (now is Maven Integration for Eclipse 1.2), and that Maven Plugin Extra does not exist anymore.
Subclipse, instead, is available.
So I installed these plugins, but, afterwords, no "Checkout Maven Project from SCM" functionality was present on my Eclipse.
Then I searched online to solve this problem, and I found this thread on StackOverflow.com. It suggested to install the Maven SCM handler for Subclipse.
I've searched it on the plugin repository of Elcipse but it does not exist anymore.
Which Eclipse plugin may I use to get the "Checkout Maven Project from SCM" functionality on my Eclipse IDE ?
Thanks a lot
When you go to Window -> Preferences -> Maven -> Discovery, you have a button "Open Catalog", which opens a plugin marketplace specific to the m2e plugin. There you'll find a plugin called m2e-subclipse, which should give you the appropriate options:
Change the installed sub version to have m2 plugin. then check out as maven shows up.
Eclipse Marketplace -> Installed -> Subversive SVN -> Change -> Subversive SVN Integration for the M2E Project (Optional) and install it.
see images below.
I have recently run into same issue and found solution, as preferences trick mentioned in this post did not work for me.
All you need to do is to go back to your SVN installation (tested for subversive, guess similar for subclipse) and check m2e integration plug-in.
In my case: Eclipse Marketplace -> Installed -> Subversive SVN -> Change -> Subversive SVN Integration for the M2E Project (Optional) and install it.
I have a workaround , since I was not able to find m2e-subclipse in Window -> Preferences -> Maven -> Discovery.You need to check out the project.Once done, right click on the Project Explorer and Import->Maven->Existing Maven Project and select the checked out project and click Finish.
Just a heads up for anybody seeing this again for future versions of Eclipse.
Sonatype is no longer maintaining this:
You can either use the fork currently being maintainted in github [https://github.com/subclipse/m2e]:
https://dl.bintray.com/subclipse/releases/m2e/1.0.x/
Or you can use the eclipse maintained link for the eclipse version:
https://download.eclipse.org/technology/m2e/releases/1.9/1.9.1.20180912-1601/
Install either one by using the "install new software" link in Eclipse above "Eclipse Marketplace"
I used eclipse version 2022-12 from this website https://mergedoc.osdn.jp/
After I face this problem and try many ways. Finally, I got the solution.
Right-click on repo
Select Find/Check Out As...
Choose Check out as a project with the name specified, then input your project name alias
After checkout is finished. Right-click on the project.
Select Configure > Convert to Maven Project.

Can't install Maven SCM Handler for EGit for Juno

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?
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:
Click Help
Click Install New Software
Uncheck the box labeled Group items by category (this step is important or you won't see the connector in the table)
Paste in this URL http://repository.tesla.io:8081/nexus/content/sites/m2e.extras/m2eclipse-egit/0.14.0/N/0.14.0.201305250025/
Finish the plugin install wizard and restart the workspace
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
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
Install the handler from
http://repository.tesla.io:8081/nexus/content/sites/m2e.extras/m2eclipse-egit/0.14.0/N/0.14.0.201305250025/
It works for Kepler SR1.
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.

Checkout Maven project from SCM - no connectors

I have a problem with checkout Maven project in Eclipse Indigo. I've installed m2e plugin, Subclipse, Git, but can't select appropriate SCM type ? How to solve this ?
Affan was correct. The connectors are all still there in Indigo, just hidden a little.
Start Eclipse and open preferences.
Find the Maven group and expand it.
Select the "Discovery" item and click "Open Catalog".
A dialog will pop up with all the goodies. The connectors are at the bottom.
I ran into this issue with Eclipse where when you would try to Import a project via:
"Check out Maven Projects from SCM" from the project expoler the "scm url" drop down box would be empty.
After googling around, you must have subclipse installed from the Eclipse Marketplace (which I did) AND "Maven SCM handler for Subclipse" from the "Help->Install new software" dialog box (which I did not).
How to get Maven SCM Handler for Subclipse:
Assumption: You have Subclipse installed.
Click Help->Install New Software
Click "Add..." to add a new software site.
Add this site: http://subclipse.tigris.org/m2eclipse/1.0 (Alternative URL: http://subclipse.tigris.org/m2eclipse/latest/)
Select the Maven SCM handler for Subclipse
Install
You can now use the Project Explorer context menu of "Import -> Maven -> Check out Maven Projects from SCM" and actually have a SCM URL to choose from in the drop down box, namely "svn".
Tested with Eclipse Juno
Looks like there is some incompatibility issue between Indigo and m2eclipse. This discussion gives more details including a possible solution.
Hope this helps.
Edit 1: Uninstalled m2eclipse 0.12.x from Indigo and installed m2e from Eclipse's m2e releases repository. This version shows a link to download m2e scm connectors from Eclipse marketplace (when you try to check out a maven project from scm). I could see connectors for cvs, git and subversive.
For those using subclipse 1.8.x there is a patched version of the m2e connector.
Here is the update site: http://subclipse.tigris.org/m2eclipse/1.0
(Thanks to RockyMM for posting the link to the WONTFIX issue, which contained the link to the patched version.)
Indigo comes with m2e pre-installed. To get the connectors just click on link where it says find more connectors in the m2e marketplace. From there i installed the m2e-subclipse connector. This is a different approach from previous versions of Eclipse where you had to install another plugin from market place called "Maven Integration for Eclipse (Extras)".
There was an unofficial update of SVN connector. To install it go to http://subclipse.tigris.org/issues/show_bug.cgi?id=1557 download attachment org.sonatype.m2e.subclipse.feature-0.13.0-SNAPSHOT-site.zip and follow the steps:
Unzip the file to an empty folder somewhere, remember that folder
In Eclipse,
go to Help/Install New Software…
Click “Add…” to add a new site
In the window, click on “Local…” and choose the folder where you unzipped the
site before. The result in the Location field should look like file:/C:/
theUnzipFolder/
Click OK, choose all available packages to install, and continue the
installation as usual
This is related answer by "technocrat" with new update site URLs.
This is working with Eclipse 2019-12:
The problem: "Check out Maven Projects from SCM" from the project explorer the "scm url" drop down box is be empty.
You must have subclipse installed from the Eclipse Marketplace AND "Maven SCM handler for Subclipse".
How to get Maven SCM Handler for Subclipse:
Background: The original website of this project (http://subclipse.tigris.org/) redirects to https://github.com/subclipse. The subproject "m2e" is important.
Here, you will find a link to an Eclipse update site: https://dl.bintray.com/subclipse/releases/m2e/1.0.x/. Add this to the eclipse update sites.
Now you will see "Maven SCM handler for Subclipse". Install it.
You can now use the Project Explorer context menu of "Import -> Maven -> Check out Maven Projects from SCM" and actually have a SCM URL to choose from in the drop down box, namely "svn".