Failed to execute goal com.jayway.maven.plugins.android.generation2:

環境構築Apache Maven

Mavenによるプロジェクトビルドが失敗

 状態:未解決  閲覧数:2,699  投稿日:2014-02-18  更新日:2014-02-20
mvn clean package


エラーメッセージ


[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources (default-
generate-sources) on project ★★: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generatio
n2:android-maven-plugin:3.6.0:generate-sources failed: A required class was missing while executing com.jayway.maven.plugins.andr
oid.generation2:android-maven-plugin:3.6.0:generate-sources: Lorg/sonatype/aether/RepositorySystem;


原因


・AndroidのMavenプラグインは、Maven3.1と互換性がないから


対策案A


Apacheベースのmaven-3.0.5を使用
・maven-3.0.5を試すもエラー
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources (de
generate-sources) on project android-style: Execution default-generate-sources of goal com.jayway.maven.plugins.android.gen
n2:android-maven-plugin:3.6.0:generate-sources failed: Invalid SDK: Platform/API level 16 not available. This command shoul
you all you need:
[ERROR] D:\Android\android-sdk;\tools\android update sdk --no-ui --obsolete --force
3.1.1へ戻す


対策案B


android-maven-pluginをインストール
The Central Repository Search Engine



Apache Maven がインストール出来ない



週間人気ページランキング / 3-23 → 3-29
順位 ページタイトル抜粋 アクセス数
1 ログイン 22
2 この行に複数マーカーがあります | エラー(エラー) 9
3 プラグイン "org.eclipse.ui.workbench" からのコードの起動で問題が発生しました | エラー(エラー) 7
3 public 型 ★★ はそれ独自のファイル内に定義されなければなりません | エラー 7
4 インポートされた ★★ は見つかりません | エラー 6
5 R.java was modified manually! Reverting to generated version! | エラー(エラー) 4
6 E/Trace(★★): error opening trace file: No such file or directory | エラー(エラー) 3
6 E/AudioPlayer(★★): FAILED renaming /mnt/sdcard/tmprecording.3gp to /android_asset/●●.mp3 | エラー 3
6 Android FAQ 3
6 「SQLite Database 」へ保存したデータを確認したい | SQLite 3
7 Eclipseが起動しない … ユーザ操作は待機中です | Eclipse(IDE) 2
7 Apache Maven(環境構築) カテゴリー 2
7 Project build error: Non-resolvable parent POM: Failure to find | エラー 2
7 エディターを開くことができません: 予期しない例外が起こりました。 | エラー(エラー) 2
7 Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties | エラー(エラー) 2
7 Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation) | 警告(エラー) 2
7 キーバインドの競合が発生しました。 通常のアクセラレーター操作を妨げる可能性があります。 | エラー(エラー) 2
7 Unexpected error while launching logcat | エラー(エラー) 2
7 ○○は解決できないか、フィールドではありません | エラー(エラー) 2
7 emulator: エラー: Unable to load VM from snapshot. The snapshot has been saved for a different hardware configuration. | エラー(エラー) 2
2026/3/30 5:05 更新