20

我只是尝试使用我的 gwt 2.4 应用程序从 helios 迁移到 maven。所以我开始按照这里的步骤操作: http ://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven

但在第 3 步 - 安装功能“m2e 连接器用于 build-helper-maven-plugin”时,我从 Eclipse 收到错误消息:

Cannot complete the install because one or more required items could not be found.
  Software being installed: m2e connector for build-helper-maven-plugin     0.15.0.201109290002 (org.sonatype.m2e.buildhelper.feature.feature.group 0.15.0.201109290002)
  Missing requirement: m2e connector for build-helper-maven-plugin 0.15.0.201109290002 (org.sonatype.m2e.buildhelper 0.15.0.201109290002) requires 'bundle org.eclipse.m2e.jdt [1.1.0,1.2.0)' but it could not be found
  Cannot satisfy dependency:
    From: m2e connector for build-helper-maven-plugin 0.15.0.201109290002 (org.sonatype.m2e.buildhelper.feature.feature.group 0.15.0.201109290002)
    To: org.sonatype.m2e.buildhelper [0.15.0.201109290002]

有解决方法还是我做错了什么?

4

7 回答 7

21

问题不是 GWT Eclipse 插件而是 m2e,它当前是 1.0.x 版本,而不是 build-helper 连接器版本 0.15 所要求的 1.1.0 或更高版本。我建议稍后安装 build-helper 连接器,并尝试安装 0.14 版本(适用于我的机器)。使用此存储库:https ://repository.sonatype.org/content/repositories/forge-sites/m2e-extras/0.14.0/N/0.14.0.201109282148/

如果您需要更新站点(例如,因为您正在使用 RAD 并且只能使用更新站点),则有一个修改后的 0.15.0 更新站点定义:m2eclipse with 0.14.0 connector

要使其正常工作,请执行以下操作:

  • 转到帮助\安装新软件\
  • 点击添加
  • 点击本地
  • 将解压缩的文件夹添加为位置

在选择中,选择版本 0.14.0 中 build-helper-maven-plugin 的 m2e 连接器。

于 2011-11-24T16:59:13.103 回答
12

找到了解决方案。您可以通过 Eclipse 控制台安装正确的版本而不会出现依赖关系失败。

  1. 打开相关的 pom.xml,通过概览视图,您应该会在顶部看到红色的错误消息“生命周期配置未涵盖插件执行:org.codehaus.mojo:buid..(点击详细信息)

  2. 右键单击并选择发现 m2e 连接器

  3. 将显示 Eclipse 市场,其中包含正确且必需的 m2e 连接器。

  4. 选择 buildhelper 并单击完成。

  5. 按照说明安装,重启eclipse

  6. 瞧,在下一次构建之后,这些 maven 错误不应该再发生了。

于 2011-12-16T13:15:01.753 回答
2

我有一个类似的问题,STS(3.9.1.Release)说我有一个更新:“m2e connector for build-helper-maven-plugin”,但它永远不会完成并一直困扰着我。

我添加了以下 SonaType 存储库: https ://repository.sonatype.org/content/repositories/forge-sites/m2e-marketplace-p2-repo/

然后 STS 能够进行它想做的更新。

于 2017-10-19T13:57:35.363 回答
1

要安装所需版本的 m2e,您可以使用以下存储库m2e 1.1 里程碑。它还没有经过很好的测试,但我没有注意到任何错误。

于 2012-01-30T08:00:07.133 回答
1

如果您仍在寻找“用于 build-helper-maven-plugin 0.15.0 的 m2e 连接器。”发布

https://repository.sonatype.org/content/repositories/forge-sites/m2e-extras/0.15.0/N/

于 2014-06-04T09:13:02.910 回答
0

查看您在 eclipse.org 上的 m2e-users 上询问的线程中的最后一条消息。我没试过,所以。

于 2011-11-24T17:51:52.373 回答
0

从http://download.eclipse.org/technology/m2e/releases/安装 m2e >1为我解决了这个问题。

于 2013-02-14T05:54:27.140 回答