AKSW / RDFUnit

An RDF Unit Testing Suite
http://RDFUnit.aksw.org
Apache License 2.0
150 stars 42 forks source link

Webservice does not build #109

Open GordianDziwis opened 3 years ago

GordianDziwis commented 3 years ago
mvn -pl rdfunit-validate -am clean install jetty:run

Result:

[ERROR] No plugin found for prefix 'jetty' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/beavis/.m2/repository), central (https://repo1.maven.org/maven2)] -> [Help 1]
mvn clean install

Result:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project rdfunit-model: Compilation failure
[ERROR] /home/beavis/repositories/RDFUnit/rdfunit-model/src/main/java/org/aksw/rdfunit/model/interfaces/TestCaseGroup.java:[39,17] incompatible types: inference variable D has incompatible equality constraints java.util.List<org.aksw.rdfunit.model.interfaces.results.TestCaseResult>,java.util.List<org.aksw.rdfunit.model.interfaces.results.ShaclLiteTestCaseResult>
GordianDziwis commented 3 years ago

mvn clean install built after setting JAVA_HOME to java8. But then

mvn jetty:run

Throws:

[ERROR] Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:11.0.0:run (default-cli) on project rdfunit-validate: Execution default-cli of goal org.eclipse.jetty:jetty-maven-plugin:11.0.0:run failed: Unable to load the mojo 'run' in the plugin 'org.eclipse.jetty:jetty-maven-plugin:11.0.0' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: org/eclipse/jetty/maven/plugin/JettyRunMojo has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
jimkont commented 3 years ago

Thanks for the report, it was indeed an bug. we upgraded the jetty version recently which was not compatible with Java 8, I reverted to the previous version for now

GordianDziwis commented 3 years ago

Thanks, this helped, and I was able to start the jetty server, but navigation to it gives a 503.

Here is the terminal output.

jimkont commented 3 years ago

can you try running this from the rdfunit-shacl-ws directory? with e.g.

mvn clean install
cd rdfunit-shacl-ws
mvn jetty:run