そのため、Gerrit プラグイン プロジェクトのセットアップ方法を説明する Gerrit ドキュメント (バージョン 2.5.2) の文書化された手順に従おうとしています (ドキュメントはこちら)。
ここでのプレゼンテーションから始めましたが、上記のリンクされた gerrit doc にあるものと同様の mvn コマンドを持つ「ステップ 3」スライドまで正常に機能しました。
プロジェクトの作成手順が次のエラーで失敗します。
[WARNING] Archetype not found in any catalog. Falling back to central repository (http://repo1.maven.org/maven2).
[WARNING] Use -DarchetypeRepository=<your repository> if archetype's repository is elsewhere.
Downloading: http://repo1.maven.org/maven2/com/google/gerrit/gerrit-plugin-archetype/2.5-SNAPSHOT/maven-metadata.xml
Downloading: http://repo1.maven.org/maven2/com/google/gerrit/gerrit-plugin-archetype/2.5-SNAPSHOT/gerrit-plugin-archetype-2.5-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.529s
[INFO] Finished at: Thu Mar 28 09:45:15 CDT 2013
[INFO] Final Memory: 11M/361M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.google.gerrit:gerrit-plugin-archetype:2.5-SNAPSHOT) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
だから私は今少し迷っています。それを修正するために何をすべきかわかりません。
特に、Gerrit の文書化されたコマンドに従ってプロジェクトをセットアップしているためです。これには正しいアーキタイプ情報が含まれていると思います。しかし、明らかにそうではありません。