gpt4 book ai didi

java - 无法编译 Artifactory 7.10.2

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

JFrog发布后source code for Artifactory 7.10.2 ,我尝试构建它,但没有成功。
该项目似乎是一个 Maven 项目(根项目中有一个 pom.xml,所以我猜是这样)。
从项目的根目录我给出了通常的 mvn package ,但这导致了错误:

$ mvn package
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.artifactory:artifactory-parent:7.10.2: Failure to find org.jfrog.common:jfrog-parent-pom:pom:7.10.2 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 21, column 13
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.artifactory:artifactory-parent:7.10.2 (/tmp/jfrog-artifactory-7.10.2/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.artifactory:artifactory-parent:7.10.2: Failure to find org.jfrog.common:jfrog-parent-pom:pom:7.10.2 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 21, column 13 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
似乎项目本身需要一个本地依赖,它对 tar.gz 不可用。虽然发布了。
查看 6.23.x 源代码有对 artifactory-parent 的引用这里缺少,但我认为它不会使用旧的依赖项进行编译。
最后查了一下 build/ci文件夹,其中有一个 pipelines_build.sh脚本,但是在启动它时我有另一个错误:
./pipelines_build.sh
./pipelines_build.sh: line 6: /tmp/build/ci/scripts/lib/buildInfoUtils.sh: No such file or directory
似乎这里的 tarball 也不包含构建产品的所有信息。
重要的是,我从这个答案中找到了源代码: Where is the Artifactory OSS source code located?
我做错了什么?谁能帮我建立Artifactory?

最佳答案

您需要使用 JCenter 而不是 Maven 中心。转到 jcenter 并下载 settings.xml,然后重试。

关于java - 无法编译 Artifactory 7.10.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64534185/

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