gpt4 book ai didi

maven - 尝试 'mvn clean install' Gerrit 的复制插件时出错

转载 作者:行者123 更新时间:2023-12-02 02:03:13 25 4
gpt4 key购买 nike

这可能是一个新手问题,但我是 Maven 的新手。

我正在尝试构建 Gerrit 的复制插件,"since the master branch (and thus Gerrit 2.5) no longer supports replication out of the box."

所以我克隆了https://gerrit.googlesource.com/plugins/replication并在新目录中执行 mvn clean install。错误信息是:

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building replication 1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.google.gerrit:gerrit-plugin-api:jar:2.6-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.840s
[INFO] Finished at: Thu Apr 25 17:30:10 BRT 2013
[INFO] Final Memory: 6M/105M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project replication: Could not resolve dependencies for project com.googlesource.gerrit.plugins.replication:replication:jar:1.1-SNAPSHOT: Failure to find com.google.gerrit:gerrit-plugin-api:jar:2.6-SNAPSHOT in https://gerrit-api.commondatastorage.googleapis.com/release/ was cached in the local repository, resolution will not be
reattempted until the update interval of gerrit-api-repository has elapsed or updates are forced -> [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/DependencyResolutionException

这个 URL 似乎无效:https://gerrit-api.commondatastorage.googleapis.com/release/ -- 但正如我所说,我是 Maven 的新手,所以我不确定如何进行。我做了一些研究,但我不知道我在寻找什么。

任何指针将不胜感激。提前致谢。

最佳答案

一些事情-

  1. 您缺少 gerrit-plugin-api.jar。上游当前未提供此功能,因此您必须自己构建它。我相信从 Gerrit 存储库运行 mvn install 会将这个 jar 打包并添加到您的系统中。

  2. 您不想运行install,您只想在插件上运行packagemvn package 会将 .jar 放在 target/文件夹中,然后您将其复制到 Gerrit 安装中的插件文件夹中。

祝你好运!

关于maven - 尝试 'mvn clean install' Gerrit 的复制插件时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16224839/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com