eclipse 从 SCM 签出 Maven 项目 - 没有连接器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6729511/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 20:18:38  来源:igfitidea点击:

Checkout Maven project from SCM - no connectors

eclipsemavenm2eclipse

提问by marioosh

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 ?

我在 Eclipse Indigo 中结帐 Maven 项目时遇到问题。我已经安装了 m2e 插件、Subclipse、Git,但无法选择合适的 SCM 类型?如何解决这个问题?

Checkout as Maven project from SCM

从 SCM 结帐为 Maven 项目

回答by Brill Pappin

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

阿凡是对的。连接器都还在 Indigo 中,只是隐藏了一点。

  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.
  1. 启动 Eclipse 并打开首选项。
  2. 找到 Maven 组并展开它。
  3. 选择“发现”项并单击“打开目录”。
  4. 将弹出一个包含所有好东西的对话框。连接器位于底部。

回答by technocrat

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 Marketplace 安装 subclipse(我做了)和“帮助 - >安装新软件”对话框中的“Subclipse的Maven SCM处理程序”(我没有)。

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/)
  4. Select the Maven SCM handler for Subclipse
  5. Install
  1. 点击帮助->安装新软件
  2. 单击“添加...”以添加新的软件站点。
  3. 添加此站点:http: //subclipse.tigris.org/m2eclipse/1.0(替代网址:http: //subclipse.tigris.org/m2eclipse/latest/
  4. 为 Subclipse 选择 Maven SCM 处理程序
  5. 安装

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

您现在可以使用“导入 -> Maven -> 从 SCM 检出 Maven 项目”的项目资源管理器上下文菜单,实际上在下拉框中有一个 SCM URL 可供选择,即“svn”。

Tested with Eclipse Juno

使用 Eclipse Juno 进行测试

回答by Raghuram

Looks like there is some incompatibility issue between Indigo and m2eclipse. This discussiongives more details including a possible solution.

看起来 Indigo 和 m2eclipse 之间存在一些不兼容问题。 此讨论提供了更多详细信息,包括可能的解决方案。

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 connectorsfrom Eclipse marketplace (when you try to check out a maven project from scm). I could see connectors for cvs, git and subversive.

编辑 1:从 Indigo 卸载 m2eclipse 0.12.x 并从 Eclipse 的m2e 版本存储库安装 m2e 。此版本显示了从 Eclipse 市场下载 m2e scm 连接器的链接(当您尝试从 scm 检出 maven 项目时)。我可以看到 cvs、git 和 subversive 的连接器。

回答by fuemf5

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

对于那些使用 subclipse 1.8.x 的人,有一个 m2e 连接器的补丁版本。这是更新站点: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 问题的链接,其中包含指向修补版本的链接。)

回答by TastyCode

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

Indigo 预装了 m2e。要获取连接器,只需单击链接,其中显示在 m2e 市场中查找更多连接器。从那里我安装了 m2e-subclipse 连接器。这是与以前版本的 Eclipse 不同的方法,您必须从市场上安装另一个名为“Eclipse 的 Maven 集成(Extras)”的插件。

回答by gnom1gnom

There was an unofficial update of SVN connector. To install it go to http://subclipse.tigris.org/issues/show_bug.cgi?id=1557download attachment org.sonatype.m2e.subclipse.feature-0.13.0-SNAPSHOT-site.zip and follow the steps:

有一个 SVN 连接器的非官方更新。要安装它,请访问http://subclipse.tigris.org/issues/show_bug.cgi?id=1557下载附件 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
  • 将文件解压缩到某个空文件夹中,记住该文件夹在 Eclipse 中,
  • 转到帮助/安装新软件...
  • 单击“添加...”以添加新站点
  • 在窗口中,单击“本地...”并选择之前解压缩站点的文件夹。Location 字段中的结果应类似于 file:/C:/ theUnzipFolder/
  • 单击确定,选择所有可用的软件包进行安装,然后照常继续安装

回答by wknauf

This is related answer by "technocrat" with new update site URLs.

这是“technocrat”与新的更新站点 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 Marketplace 和“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".

您现在可以使用“导入 -> Maven -> 从 SCM 检出 Maven 项目”的项目资源管理器上下文菜单,实际上在下拉框中有一个 SCM URL 可供选择,即“svn”。