Checkout Maven project from SCM - no connectors

匿名 (未验证) 提交于 2019-12-03 08:48:34

问题:

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 ?

回答1:

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.


回答2:

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



回答3:

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.



回答4:

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



回答5:

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



回答6:

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


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!