简体   繁体   English

从 SCM 检查 Maven 项目 - 无连接器

[英]Checkout Maven project from SCM - no connectors

I have a problem with checkout Maven project in Eclipse Indigo.我在 Eclipse Indigo 中结帐 Maven 项目时遇到问题。 I've installed m2e plugin, Subclipse, Git, but can't select appropriate SCM type?我已经安装了m2e插件,Subclipse,Git,但是不能select合适的单片机类型? How to solve this?如何解决这个问题?

从 SCM 签出为 Maven 项目

Affan was correct.阿凡说得对。 The connectors are all still there in Indigo, just hidden a little.连接器在 Indigo 中仍然存在,只是稍微隐藏了一点。

  1. Start Eclipse and open preferences.启动 Eclipse 并打开首选项。
  2. Find the Maven group and expand it.找到 Maven 组并展开它。
  3. Select the "Discovery" item and click "Open Catalog". Select “发现”项并单击“打开目录”。
  4. 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:我在 Eclipse 遇到了这个问题,当您尝试通过以下方式导入项目时:

"Check out Maven Projects from SCM" from the project expoler the "scm url" drop down box would be empty. “从 SCM 中签出 Maven 项目”,“scm url”下拉框将为空。

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).在谷歌搜索之后,您必须从 Eclipse 市场(我做了)和“帮助->安装新软件”对话框(我没有)中的“Subclipse 的 Maven SCM 处理程序”安装了 subclipse。

How to get Maven SCM Handler for Subclipse:如何获取 Subclipse 的 Maven SCM 处理程序:

Assumption: You have Subclipse installed.假设:您已经安装了 Subclipse。

  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/ )添加此站点: http://subclipse.tigris.org/m2eclipse/1.0 (替代 URL: http/eclipsestlipse.org/
  4. Select the Maven SCM handler for Subclipse Select Maven 用于 Subclipse 的 SCM 处理程序
  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".您现在可以使用“Import -> Maven -> Check out Maven Projects from SCM”的 Project Explorer 上下文菜单,实际上在下拉框中有一个 SCM ZE6B391A8D2C4D45902A23A8B658 中的“选择”,即“选择”。

Tested with Eclipse Juno用 Eclipse Juno 测试

Looks like there is some incompatibility issue between Indigo and m2eclipse.看起来 Indigo 和 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 .编辑 1 :从 Indigo 卸载 m2eclipse 0.12.x 并从 Eclipse 的m2e 版本库安装 m2e。 This version shows a link to download m2e scm connectors from Eclipse marketplace (when you try to check out a maven project from scm).此版本显示了从 Eclipse 市场下载 m2e scm 连接器的链接(当您尝试从 scm 签出 maven 项目时)。 I could see connectors for cvs, git and subversive.我可以看到 cvs、git 和颠覆性的连接器。

For those using subclipse 1.8.x there is a patched version of the m2e connector.对于那些使用 subclipse 1.8.x 的用户,有一个补丁版本的 m2e 连接器。 Here is the update site: http://subclipse.tigris.org/m2eclipse/1.0这里是更新站点: 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.) (感谢 RockyMM 发布 WONTFIX 问题的链接,其中包含修补版本的链接。)

Indigo comes with m2e pre-installed. Indigo 预装了 m2e。 To get the connectors just click on link where it says find more connectors in the m2e marketplace.要获取连接器,只需单击链接,其中显示在 m2e 市场中查找更多连接器。 From there i installed the m2e-subclipse connector.从那里我安装了 m2e-subclipse 连接器。 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)".这是与以前版本的 Eclipse 不同的方法,在以前版本中,您必须从市场安装另一个插件,称为“Maven Integration for Eclipse (Extras)”。

There was an unofficial update of SVN connector. SVN 连接器有非官方更新。 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: 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,将文件解压到某个空文件夹,记住那个文件夹在Eclipse中,
  • go to Help/Install New Software… go 帮助/安装新软件…
  • Click “Add…” to add a new site单击“添加...”以添加新站点
  • In the window, click on “Local…” and choose the folder where you unzipped the site before.在 window 中,单击“本地...”并选择之前解压缩站点的文件夹。 The result in the Location field should look like file:/C:/ theUnzipFolder/ Location 字段中的结果应类似于 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.这是“技术专家”的相关答案,带有新的更新站点 URL。

This is working with Eclipse 2019-12:这适用于 Eclipse 2019-12:

The problem: "Check out Maven Projects from SCM" from the project explorer the "scm url" drop down box is be empty.问题:项目资源管理器中的“从 SCM 检查 Maven 项目”,“scm url”下拉框为空。

You must have subclipse installed from the Eclipse Marketplace AND "Maven SCM handler for Subclipse".您必须从 Eclipse 市场和“Subclipse 的 Maven SCM 处理程序”安装 subclipse。

How to get Maven SCM Handler for Subclipse:如何获取 Subclipse 的 Maven SCM 处理程序:

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".您现在可以使用“Import -> Maven -> Check out Maven Projects from SCM”的 Project Explorer 上下文菜单,实际上在下拉框中有一个 SCM ZE6B391A8D2C4D45902A23A8B658 中的“选择”,即“选择”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM