RDFUnit icon indicating copy to clipboard operation
RDFUnit copied to clipboard

Webservice does not build

Open GordianDziwis opened this issue 3 years ago • 4 comments

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 avatar May 14 '21 18:05 GordianDziwis

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

GordianDziwis avatar May 14 '21 18:05 GordianDziwis

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

jimkont avatar May 16 '21 13:05 jimkont

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

Here is the terminal output.

GordianDziwis avatar May 16 '21 16:05 GordianDziwis

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

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

jimkont avatar Jun 13 '21 14:06 jimkont