2012-10-02 6 views
13

更新はbuildhelper:答えのM2eコネクタは、EclipseジュノSR1ののM2eとの互換性はありません1.2

EclipseのジュノSR1のM2eプラグインのバージョン1.2をインストールするソリューションを移動しました。 Eclipseマーケットプレイスが提供するm2eコネクタbuildhelperは、このバージョンのm2eプラグインと互換性がありません。私は様々なメーリングリストを見てきましたが、更新されたビルドヘルパーを見つける場所が見つかりません。我々は、Eclipseに生成されたソースとディレクトリを追加するbuildhelperを使用して、当社のPOMファイルで

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] 

::のM2eコネクタbuildhelperをインストールしようとすると

次のエラーが発生し

<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> 
+1

ありがとうございます。ソリューションを回答として追加し、それを受け入れる必要があります。 – artbristol

+3

解決策を回答に入れて、問題が解決されたことが明らかになるように質問に回答としてマークする必要があります。 – FrVaBe

+0

コメントありがとうございます。私は解決策を以下の答えに移しました。ソリューションとして自分の答えをマークするには、2日待つ必要があります。 – Denis

答えて

21

コメントEclipseマーケットプレイスを使用してビルドヘルパーをインストールすることを提案しました。

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

Eclipseマーケットプレイスのビルドヘルパー版が古くなっているため、これは行いません。

Eclipse Marketplaceを使用する代わりに、Eclipseインストールの新しいソフトウェアメニューオプションを使用してSonatypeリポジトリから直接ビルドヘルパーをインストールしました。最新のバージョン(現在)のSonatypeリポジトリはここにあります: https://repository.sonatype.org/content/repositories/forge-sites/m2e-extras/0.15.0/N/0.15.0.201206251206/

これは私の問題を解決しました。

+0

+1私のためにも働きます。 – Stephan202

関連する問題