m2e连接器buildhelper与Eclipse Juno SR1 m2e 1.2不兼容 [英] m2e connector buildhelper not compatible with Eclipse Juno SR1 m2e 1.2

查看:130
本文介绍了m2e连接器buildhelper与Eclipse Juno SR1 m2e 1.2不兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新:将解决方案移动到答案

Update: moved the solution to an answer

Eclipse Juno SR1安装m2e插件版本1.2。由Eclipse市场提供的m2e连接器 buildhelper 与此版本的m2e插件不兼容。我一直在寻找各种邮件列表,但是找不到更新的buildhelper的位置。

Eclipse Juno SR1 installs m2e plugin version 1.2. The m2e connecter buildhelper provided by the Eclipse marketplace is not compatible with this version of the m2e plugin. I've been looking through various mailinglists, but I cannot find a location where to find an updated buildhelper.

尝试安装m2e连接器buildhelper时会出现以下错误:

The following error occurs when trying to install the m2e connector buildhelper:

Operation details
Cannot complete the install because of a conflicting dependency.
Software being installed: m2e connector for build-helper-maven-plugin 0.15.0.201109282249 (org.sonatype.m2e.buildhelper.feature.feature.group 0.15.0.201109282249)
Software currently installed: m2e - Maven Integration for Eclipse 1.2.0.20120903-1050     (org.eclipse.m2e.feature.feature.group 1.2.0.20120903-1050)
Only one of the following can be installed at once: 
    Maven Integration for Eclipse JDT 1.2.0.20120903-1050 (org.eclipse.m2e.jdt 1.2.0.20120903-1050)
    Maven Integration for Eclipse JDT 1.1.0.20120530-0009 (org.eclipse.m2e.jdt 1.1.0.20120530-0009)
Cannot satisfy dependency:
    From: m2e - Maven Integration for Eclipse 1.2.0.20120903-1050 (org.eclipse.m2e.feature.feature.group 1.2.0.20120903-1050)
    To: org.eclipse.m2e.jdt [1.2.0.20120903-1050]
Cannot satisfy dependency:
    From: m2e connector for build-helper-maven-plugin 0.15.0.201109282249 (org.sonatype.m2e.buildhelper 0.15.0.201109282249)
    To: bundle org.eclipse.m2e.jdt [1.1.0,1.2.0)
Cannot satisfy dependency:
    From: m2e connector for build-helper-maven-plugin 0.15.0.201109282249 (org.sonatype.m2e.buildhelper.feature.feature.group 0.15.0.201109282249)
    To: org.sonatype.m2e.buildhelper [0.15.0.201109282249]

在我们的pom文件中,我们使用buildhelper将具有生成源的目录添加到Eclipse中:

In our pom files we use buildhelper to add directories with generated sources to the Eclipse:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>build-helper-maven-plugin</artifactId>
    <version>1.5</version>
    <executions>
      <!-- Fix this eclipse error by discovering the plugin in the marketplace -->
        <execution>
            <id>add-source</id>
            <phase>generate-sources</phase>
            <goals>
                <goal>add-source</goal>
            </goals>
            <configuration>
                <sources>
                        <source>${project.build.directory}/generated-sources/cxf</source>
                </sources>
            </configuration>
        </execution>
    </executions>
</plugin>


推荐答案

pom中的注释建议使用Eclipse市场安装buildhelper:

The comment in the pom suggested to use the Eclipse marketplace to install the buildhelper:

<!-- Fix this eclipse error by discovering the plugin in the marketplace -->

这不会做,因为Eclipse市场中的buildhelper版本已经过时了。

This will not do, because the buildhelper version in the Eclipse marketplace is outdated.

我不是使用Eclipse Marketplace,而是使用Eclipse安装新的软件菜单选项直接从Sonatype存储库安装buildhelper。具有(当前)最新版本的Sonatype存储库位于:
https://repository.sonatype.org/content/repositories/forge-sites/m2e-extras/0.15.0/N/0.15.0.201206251206/

Instead of using the Eclipse Marketplace, I installed the buildhelper directly from the Sonatype repository using the Eclipse install new software menu option. The Sonatype repository with the (currently) latest version is here: https://repository.sonatype.org/content/repositories/forge-sites/m2e-extras/0.15.0/N/0.15.0.201206251206/

这解决了我的问题。

这篇关于m2e连接器buildhelper与Eclipse Juno SR1 m2e 1.2不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆