首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >m2e连接器构建器与Eclipse SR1 m2e 1.2不兼容

m2e连接器构建器与Eclipse SR1 m2e 1.2不兼容
EN

Stack Overflow用户
提问于 2012-10-02 06:50:21
回答 1查看 9.7K关注 0票数 13

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

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

在试图安装m2e连接器buildhelper时发生以下错误:

代码语言:javascript
复制
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中:

代码语言:javascript
复制
<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>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-10-02 10:35:55

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

代码语言:javascript
复制
<!-- Fix this eclipse error by discovering the plugin in the marketplace -->

这是行不通的,因为Eclipse市场中的buildhelper版本已经过时了。

我没有使用,而是使用选项直接从Sonatype存储库安装buildhelper。带有(当前)最新版本的Sonatype存储库在这里:https://repository.sonatype.org/content/repositories/forge-sites/m2e-extras/0.15.0/N/0.15.0.201206251206/

这解决了我的问题。

票数 23
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12685683

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档