gpt4 book ai didi

java - 安装 wikidata-query-rdf/Blazegraph 失败

转载 作者:太空狗 更新时间:2023-10-29 14:42:49 24 4
gpt4 key购买 nike

我正在尝试安装 wikidata-query-rdf ( https://github.com/wikimedia/wikidata-query-rdf ),但 Blazegraph 出现故障:

git clone https://gerrit.wikimedia.org/r/wikidata/query/rdf wikidata-query-rdf
cd wikidata-query-rdf
sudo mvn install

我第一次收到这种警告:[警告] com.blazegraph:bigdata-cache:jar:2.1.5-SNAPSHOT 的 POM 丢失,没有可用的依赖信息

然后:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] parent ............................................. SUCCESS [ 6.246 s]
[INFO] Shared code ........................................ SUCCESS [ 19.727 s]
[INFO] Wikidata Query RDF Testing Tools ................... SUCCESS [ 9.955 s]
[INFO] Blazegraph extension to improve performance for Wikibase FAILURE [ 16.945 s]
[INFO] Blazegraph Service Package ......................... SKIPPED
[INFO] Wikidata Query RDF Tools ........................... SKIPPED
[INFO] Wikibase RDF Query Service ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 54.513 s
[INFO] Finished at: 2017-12-19T10:58:12+00:00
[INFO] Final Memory: 58M/420M
[INFO] ------------------------------------------------------------------------


[ERROR] Failed to execute goal on project blazegraph: Could not resolve dependencies for project org.wikidata.query.rdf:blazegraph:jar:0.3.0-SNAPSHOT: The following artifacts could not be resolved: com.blazegraph:bigdata-cache:jar:2.1.5-SNAPSHOT, com.blazegraph:bigdata-client:jar:2.1.5-SNAPSHOT, com.blazegraph:bigdata-common-util:jar:2.1.5-SNAPSHOT, com.blazegraph:bigdata-core:jar:2.1.5-SNAPSHOT, com.blazegraph:bigdata-util:jar:2.1.5-SNAPSHOT, com.blazegraph:ctc-striterators:jar:2.1.5-SNAPSHOT: Could not find artifact com.blazegraph:bigdata-cache:jar:2.1.5-SNAPSHOT in wmf.mirrored (http://archiva.wikimedia.org/repository/mirrored)

最佳答案

Maven 无法找到某些依赖项。您可以看到它正在查找一个只有版本但没有快照可用的存储库。

您应该将 SNAPSHOT 存储库添加到父 pom.xml 文件中:

<repositories>
....
<repository>
<id>wmf.snapshots</id>
<url>https://archiva.wikimedia.org/repository/snapshots</url>
</repository>
</repositories>

或者,将 Blazegraph 依赖版本属性更改为最新发布版本:

<properties>
<blazegraph.version>2.1.4</blazegraph.version>
...
</properties>

关于java - 安装 wikidata-query-rdf/Blazegraph 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47885637/

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