20

gwt 2.4 アプリケーションで helios から maven に移行しようとしました。だから私はここの手順に従い始めました: http://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven

しかし、ステップ 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]

そのための回避策はありますか、それとも何か間違ったことをしましたか?

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

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

  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.

于 2011-12-16T13:15:01.753 に答える
1

必要なバージョンの m2e をインストールするには、次のリポジトリm2e 1.1 マイルストーンを使用できます。まだ十分にテストされていませんが、エラーに気付きませんでした。

于 2012-01-30T08:00:07.133 に答える
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 に答える