使用 Mercurial 的 Windows 上的 m2eclipse 不允许在“从 SCM 检出 Maven 项目”上使用 hg。向导
我按照这个帖子的答案: 如何一起使用 Mercurial、Maven 和 Eclipse?
“从 SCM 查看 Maven 项目”仍然不允许我使用 Mercurial SCM。
我得到的唯一选项是下拉列表中的“svn”,即使我忽略下拉列表并输入“scm:hg:http://myMercurialRepoURL”,
我正在使用:
- Eclipse 3.6。 1
- m2eclipse 0.12 来自 http://m2eclipse.sonatype.org/sites/m2e
- “Subclipse 的 Maven SCM 处理程序”0.12.0 来自 m2eclipse extra 的站点(抱歉,我会给出 URL,但我的新帐户没有有足够的代表)
- 来自 http://cbes.javaforge.com/update
我已经卸载并按顺序重新安装了这些插件。
我能够在项目中使用 Maven,并在 Eclipse 中单独使用 Mercurial - 只是这个向导似乎被破坏了,这让我相信,如果我尝试从 Mercurial 存储库中实现工件,它也会失败。
有人有幸遇到过这个巫师吗?也许在早期版本上?这是一个新错误吗?
谢谢
I followed the answer from this posting:
How to use Mercurial, Maven and Eclipse together?
But the "Check out Maven Projects from SCM" still does not allow me to use Mercurial SCM.
The only option I get is "svn" in the dropdown, and even if I ignore the drop down and enter in "scm:hg:http://myMercurialRepoURL"
I'm using:
- Eclipse 3.6.1
- m2eclipse 0.12 from http://m2eclipse.sonatype.org/sites/m2e
- "Maven SCM handler for Subclipse" 0.12.0 from m2eclipse extra's site (sorry, I would give the URL, but my new account doesn't have enough rep)
- MercurialEclipse 1.8.1 from http://cbes.javaforge.com/update
And I've uninstalled, and reinstall those plugins in that order.
I'm able to use Maven in projects, and use Mercurial separately in Eclipse - it's just this one Wizard that seems to be broken, which leads me to believe that if I try to Materialize an Artifact from a Mercurial repo that it will also fail.
Has anyone had any luck with this Wizard? Perhaps on earlier versions? Is this a new bug?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
就我的搜索而言,我没有找到适合 Mercurial 和 m2eclipse 的连接器(就仅使用 IDE 而言)。不过,我做了一个实验,从 IDE 外部克隆了源代码的副本。 (具体通过 TortoiseHg)
然后,假设您已经在 Eclipse 中安装了 m2e:
转到文件>导入>行家>现有的 Maven 项目,然后选择您最初提取/克隆源代码的文件夹。
我相信通过这样做,您将在项目的上下文菜单中看到 m2e 命令(通过 run as),并有效使用 Mercurial 命令。 (通过团队上下文菜单)
至少现在,最好不要同时使用 m2e 和 Mercurial。
如果有人有更简化的方法,我也很好奇。 :D
As far my search went, I didn't get to find a suitable connector for mercurial and m2eclipse (in terms of only using IDE). However, I did an experiment wherein I cloned a copy of the source from outside the IDE. (via TortoiseHg specifically)
Afterwards, assuming you have already m2e installed in Eclipse:
Go to File > import > maven > existing maven projects, then select the folder where you've originally pulled/cloned your source code.
I believe by doing so, you'll see the m2e commands in the project's context menu (via run as), and effective use mercurial commands. (via team context menu)
At least for now, this is better not using m2e and mercurial at the same time.
If anyone has a more streamlined approach, I'm also curious. :D