安装 wikidata-query-rdf / Blazegraph 失败
Failed to install wikidata-query-rdf / Blazegraph
我正在尝试安装 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>
我正在尝试安装 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>