Checkout Maven project from SCM - no connectors - eclipse

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

Related

Maven m2e-egit install failure under Kepler

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

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.

Eclipse-Maven: Doesn't show Maven project from SCM

I have installed the Maven plugin and the svn connector for sublipse. Afterwards I right clicked in the project explorer (empty workspace) and clicked New -> Other -> Maven -> Maven project from SCM, entered the URL and it started downloading.
After download finished, it didn't show up in the "Project-Explorer". What do I have to do, in order to checkout a Maven project from SVN so it shows up in the "Project-Explorer".
In order to get the "Checkout as Maven Project" functionality to work I have had to install the following:
From the Eclipse Marketplace:
Maven Integration for Eclipse
Subclipse
From the m2eclipse-extras update site (http://m2eclipse.sonatype.org/sites/m2e-extras/):
Maven SCM handler for Subclipse
EDIT:
Also make sure that your project explorer view is setup correctly. Verify that your top level items are projects.

ClearCase, there is no Associate with Clearcase in eclipse

I just downloaded the plugins for using clearcase in eclipse from and put them in plugins and features folders :
http://sourceforge.net/projects/eclipse-ccase/
but when I restarted eclipse, right-cliked on the project (in project explorer), clicked in Team, there is no Associate with ClearCase.
I have :
Eclipse Platform
Version: 3.3.2
Make sure the plugin has been loaded by Eclipse: check the Preferences / Teams, you should see a ClearCase section.
If not, check the error logs of Eclipse to see if there a message explaining why the plugin doesn't load.
If nothings work, you can also try the official IBM ClearCase Eclipse plugin.

SVN not working in Eclipse

One day I pressed in Eclipse Help -> Check for Updates (and I learnt that I should Never Ever update a software which works fine.)
Then in a project that I used with SVN the whole submenu of "Team" and the little icons that showed that some files weren't commited, they all dissapeared.
I tried everything:
revert from Instalation History tab
uninstall from Installed Software tab
replaced the folder eclipse in Program Files with a new one downloaded from eclipse website and tried to install again
searched how to install it on the net
But in none of the cases above if I press Ctrl+N There is no SVN group;
If i right click on a project and select Team -> Share project, a window with CVS appears, but no SVN.
If I choose File -> Import I can't find SVN anywhere.
If I go to Help -> About Eclipse -> Instalation details I see at Instalation History in 25.06.2009, 09:59:08 GMT+03:00 (when SVN worked)
Eclipse IDE for Java EE Developers 1.2.0.20090621-0820
Subclipse (Required) 1.6.2
Subversion JavaHL Native Library Adapter (Required) 1.6.3
SVNKit Library 1.3.0.5847
In the Installed Software tab I have now installed
Eclipse IDE for Java EE Developers 1.2.0.20090621-0820 epp.package.jee
Subclipse (Required) 1.6.5 org.tigris.subversion.subclipse.feature.group
Subversion JavaHL Native Library Adapter (Required) 1.6.6 org.tigris.subversion.clientadapter.javahl.feature.feature.group
SVNKit Library 1.3.1.6109 org.tmatesoft.svnkit.feature.group
How can I make SVN to work?
Where does eclipse store its files, because when I changed the eclipse directory with a new one all my stuff was there (the ones that I installed with no success: SVN, Subversive, Subclipse, SVNKit, ...)
Subversive is my favorite SVN implementation in Eclipse because it works better than the others and it integrates neatly into the UI.
I suggest you follow these steps:
Download the most recent version of Eclipse (currently Galileo) and extract it to your desired installation location
Prior to running Eclipse, make sure you delete (or rename/relocate) your default workspace (under Windows this is workspace in your user directory)
Install the Subversive SVN Team Provider (as instructed by the Eclipse incubation website) using Eclipse's software installer:
Choose Help, then Install New Software...
Create a new download location and specify the following download URL: http://download.eclipse.org/releases/galileo
Locate Collaboration, expand it, then check Subversive SVN Team Provider (Incubation)
Proceed through the installation and accept the TOS
Restart Eclipse and Subversive should prompt you to select a SVN Connector. Reading the symptoms you describe, it sounds like you don't have a connector installed, or it isn't communicating with your team provider. The Polarion website has a guide for choosing the connector best suited for you.
If you aren't prompted to install a connector, you can always do so from the preferences screen:
If the above doesn't work for you, it seems that your workspace isn't cleaned out. Locate your default workspace and try getting things working without any projects before you continue.
You could then also try deleting the .eclipse directory in your user directory. And starting over from step 3.
The problem I had was that svn icons where not showing in the package explorer.
The solution for me was to delete the .metadata folder in the workspace folder (which will reset all your workspace including preferences and repository configurations)
After that all the icons appeared.
I had same issue when SVN connector was not able to connect SVN repository in Eclipse.
Then, I do the following step's :-
Right click on Project under Eclipse.
Go to Team -> share Project.
It's working :)
I found a problem related to installing plugins here. I also could not get the SVN stuff to show up in the preferences because of some bug with the software updater updating the Mylin plugins. You'll likely have to get your Eclipse installation straightened out first and you can do this by just using a new workspace. You don't have to blow away the .metadata folder if you point Eclipse temporarily at a new workspace folder. When the Eclipse installation is clean, you can start installing plugins again, but make sure to uncheck the box labeled Contact all update sites during install to find required software
Eclipse uses local SVN libraries that are part of an installed plugin for SVN support, be it SVNkit or JavaHL. Netbeans uses SVN libraries that are installed independently.
I have had this happen before with Eclipse and the various SVN plugins that it supports. The SVN plugin, for some reason, sometimes looses the SVN connection. Your best bet is to simply delete the project and re-check it out of svn. If you have changes that need to be committed you can use the command line.
Another problem you may have is that your plugin and your repository are out of sync in terms of version numbers. I have had problems before using a plugin designed for svn 1.6.x and a repository that was still at svn 1.4 or 1.5.
Just delete all projects from eclipse and Re-Import the all projects again.
It is working for me.
Just try it
If you want to completely start over with eclipse, you need to delete your workspace as well (the path you see when you first start eclipse). Just re-installing the eclipse files and pointing to the same default workspace will not change anything for you.
Your best bet is to remove eclipse and your workspace and start over because you probably inadvertently broke some other parts of the plug in while you were trying to fix your initial problem.
Even if you install everything as it is said, Subversive and SVN Connector (svnkit 1.x.x), in the project you may not see svn working. In my case I had to remove the project from workspace and import it again. Then it appears. (Refresh, clean did not worked).