我正在尝试安装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无法找到某些依赖项。您会看到它正在寻找一个只有版本但没有SNAPSHOTS的存储库。
您应该将SNAPSHOT存储库添加到父pom.xml文件中:
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>