因此,我正在尝试遵循 Gerrit 文档(2.5.2 版)中的文档说明,该说明解释了如何设置您的 gerrit 插件项目(此处的文档)。
我从这里的演示开始,它工作得很好,直到“第 3 步”幻灯片具有与上面链接的 gerrit doc 中的内容类似的 mvn 命令。
项目创建步骤失败并出现以下错误:
[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 记录的命令来设置项目。我会假设这将包含正确的原型信息。但显然事实并非如此。