LinkedDataFragments / Server.Java

A Triple Pattern Fragments server for Java
MIT License
27 stars 20 forks source link

Missing org.rdfhdt:hdt-jena:jar:2.0 in Maven central #45

Open jakubklimek opened 7 years ago

jakubklimek commented 7 years ago

Maven build fails with

[ERROR] Failed to execute goal on project ldfserver: Could not resolve dependencies for project org.linkeddatafragments:ldfserver:war:0.2.1: Could not find artifact org.rdfhdt:hdt-jena:jar:2.0 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
RubenVerborgh commented 7 years ago

See #38.

jakubklimek commented 7 years ago

Thanks. That moved me one step closer. Could this be mentioned in README for those of us not so skilled with maven?

Nevertheless, building https://github.com/rdfhdt builds hdt-jena-2.0-SNAPSHOT, not 2.0. So then I changed the required version in pom.xml to 2.0-SNAPSHOT from 2.0 and the build went a bit further, but still failed with:

[INFO] Compiling 4 source files to /opt/ldf/target/test-classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/TestSuite.java:[3,24] package org.junit.runner does not exist
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/TestSuite.java:[4,25] package org.junit.runners does not exist
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/TestSuite.java:[13,2] cannot find symbol
  symbol: class RunWith
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/TestSuite.java:[14,7] package Suite does not exist
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/DataSourceTest.java:[12,17] package org.junit does not exist
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/DataSourceTest.java:[13,17] package org.junit does not exist
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/HdtDataSourceTest.java:[7,17] package org.junit does not exist
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/HdtDataSourceTest.java:[8,17] package org.junit does not exist
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/HdtDataSourceTest.java:[9,17] package org.junit does not exist
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/HdtDataSourceTest.java:[10,17] package org.junit does not exist
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/JenaTDBDataSourceTest.java:[16,17] package org.junit does not exist
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/JenaTDBDataSourceTest.java:[17,17] package org.junit does not exist
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/JenaTDBDataSourceTest.java:[19,17] package org.junit does not exist
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/JenaTDBDataSourceTest.java:[20,17] package org.junit does not exist
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/DataSourceTest.java:[99,6] cannot find symbol
  symbol:   class Test
  location: class org.linkeddatafragments.test.datasource.DataSourceTest<ConstantTermType,NamedVarType,AnonVarType>
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/DataSourceTest.java:[127,6] cannot find symbol
  symbol:   class Test
  location: class org.linkeddatafragments.test.datasource.DataSourceTest<ConstantTermType,NamedVarType,AnonVarType>
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/HdtDataSourceTest.java:[44,6] cannot find symbol
  symbol:   class BeforeClass
  location: class org.linkeddatafragments.test.datasource.HdtDataSourceTest
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/HdtDataSourceTest.java:[76,6] cannot find symbol
  symbol:   class AfterClass
  location: class org.linkeddatafragments.test.datasource.HdtDataSourceTest
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/HdtDataSourceTest.java:[87,6] cannot find symbol
  symbol:   class Before
  location: class org.linkeddatafragments.test.datasource.HdtDataSourceTest
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/HdtDataSourceTest.java:[96,6] cannot find symbol
  symbol:   class After
  location: class org.linkeddatafragments.test.datasource.HdtDataSourceTest
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/JenaTDBDataSourceTest.java:[52,6] cannot find symbol
  symbol:   class BeforeClass
  location: class org.linkeddatafragments.test.datasource.JenaTDBDataSourceTest
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/JenaTDBDataSourceTest.java:[86,6] cannot find symbol
  symbol:   class AfterClass
  location: class org.linkeddatafragments.test.datasource.JenaTDBDataSourceTest
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/JenaTDBDataSourceTest.java:[101,6] cannot find symbol
  symbol:   class Before
  location: class org.linkeddatafragments.test.datasource.JenaTDBDataSourceTest
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/JenaTDBDataSourceTest.java:[109,6] cannot find symbol
  symbol:   class After
  location: class org.linkeddatafragments.test.datasource.JenaTDBDataSourceTest
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/DataSourceTest.java:[120,9] cannot find symbol
  symbol:   variable Assert
  location: class org.linkeddatafragments.test.datasource.DataSourceTest<ConstantTermType,NamedVarType,AnonVarType>
[ERROR] /opt/ldf/src/test/java/org/linkeddatafragments/test/datasource/DataSourceTest.java:[156,9] cannot find symbol
  symbol:   variable Assert
  location: class org.linkeddatafragments.test.datasource.DataSourceTest<ConstantTermType,NamedVarType,AnonVarType>
[INFO] 26 errors
mielvds commented 7 years ago

Hi @jakubklimek, did you build the release branch? https://github.com/rdfhdt/hdt-java/releases

jakubklimek commented 7 years ago

No, I built the master branch. Building the v2.0 release indeed solved this. May I suggest you include this info in the README?

mielvds commented 7 years ago

I could, but not sure if that's good practice. See https://github.com/rdfhdt/hdt-java/issues/32

jakubklimek commented 7 years ago

I understand. The README could be changed back once the 2.0 version is published in maven though...