Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

Checkout as Maven project from SCM

like image 586
marioosh Avatar asked Jul 18 '11 06:07

marioosh


3 Answers

Affan was correct. The connectors are all still there in Indigo, just hidden a little.

  1. Start Eclipse and open preferences.
  2. Find the Maven group and expand it.
  3. Select the "Discovery" item and click "Open Catalog".
  4. A dialog will pop up with all the goodies. The connectors are at the bottom.
like image 62
Brill Pappin Avatar answered Nov 10 '22 12:11

Brill Pappin


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.

  1. Click Help->Install New Software
  2. Click "Add..." to add a new software site.
  3. Add this site: http://subclipse.tigris.org/m2eclipse/1.0 (Alternative URL: http://subclipse.tigris.org/m2eclipse/latest/)
  4. Select the Maven SCM handler for Subclipse
  5. 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

like image 21
technocrat Avatar answered Nov 10 '22 11:11

technocrat


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.

like image 9
Raghuram Avatar answered Nov 10 '22 12:11

Raghuram