无法安装 Eclipse 插件“用于 build-helper-maven-plugin 0.15.0.201109290002 的 m2e 连接器”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8212846/
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:42:33  来源:igfitidea点击:

can't install eclipse plugin "m2e connector for build-helper-maven-plugin 0.15.0.201109290002"

eclipsegwtmaveneclipse-indigom2e

提问by dermoritz

i just tried to move from helios to maven with my gwt 2.4 application. so i began to follow the steps here: http://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven

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

but on step 3 - installing the feature "m2e connector for build-helper-maven-plugin" i get an error from Eclipse:

但在第 3 步 - 安装功能“用于 build-helper-maven-plugin 的 m2e 连接器”时,我收到来自 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]

Is there a workaround for that or did I do something wrong?

有没有解决方法或者我做错了什么?

回答by apetrelli

The problem is not the GWT Eclipse plugin but m2e, that currently is at 1.0.x version, and not 1.1.0 or higher as requested by the build-helper connector version 0.15. I suggest to install the build-helper connector later, and try to install the 0.14 version (that works on my machine). Use this repository: https://repository.sonatype.org/content/repositories/forge-sites/m2e-extras/0.14.0/N/0.14.0.201109282148/

问题不在于 GWT Eclipse 插件,而是 m2e,它目前是 1.0.x 版本,而不是构建助手连接器版本 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/

If you need an update site (e.g. because you are working with RAD and can only use an update site) there is a modified 0.15.0 update site definition: m2eclipse with 0.14.0 connector

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

To get it working do this:

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

  • Go to Help\Install new software\
  • Click on Add
  • Click on Local
  • Add the unzipped folder as location
  • 转到帮助\安装新软件\
  • 点击添加
  • 点击本地
  • 将解压后的文件夹添加为位置

In the selection choose the m2e connector for build-helper-maven-plugin in version 0.14.0.

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

回答by Peter Fajemisin

Found a solution. You can install the correct version with no dependency failure via your eclipse console.

找到了解决办法。您可以通过 eclipse 控制台安装正确的版本而不会出现依赖项失败。

  1. Open the relevant pom.xml, via the overview view, you should see the error message in red at the top saying "Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:buid..(Click fro details)

  2. Right click and select discover m2e connector

  3. Eclipse marketplace will be displayed, with thecorrect and required m2e connector.

  4. select the buildhelper and click finish.

  5. Follow instructions and install, restart eclipse

  6. Voila, following next build, these maven errors should not occur anymore.

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

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

  3. 将显示 Eclipse 市场,以及正确且必需的 m2e 连接器。

  4. 选择 buildhelper 并单击完成。

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

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

回答by Viacheslav Dobromyslov

To install required version of m2e you could use following repository m2e 1.1 milestone. It's not well tested yet but I did not notice any error.

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

回答by Aron

I had a similar issue where STS (3.9.1.Release) was saying I had an update for: "m2e connector for build-helper-maven-plugin" but then it would never complete and kept bugging me about it.

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

I added the following SonaType repository: https://repository.sonatype.org/content/repositories/forge-sites/m2e-marketplace-p2-repo/

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

Then STS was able to do the update it wanted to do.

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

回答by mliebelt

Have a look at the last message in the thread you asked at m2e-users at eclipse.org. I have not tried it, so.

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

回答by hari_sree

Installing m2e >1 from http://download.eclipse.org/technology/m2e/releases/solved the problem for me .

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

回答by LSDeva

In case if you are still looking for “m2e connector for build-helper-maven-plugin 0.15.0." releases

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

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

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