If your java is updated to (debian/ubuntu):

openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-1ubuntu0.18.04.1-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)

then the build in jena-base crashes surefire, leaving this error message in jena-base/target/surefire-reports:

Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter

See: SUREFIRE-1588
     https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911925


The workaround is to add a <configuration> (this is fixed in the unreleased Surefire 3.0.0-M1). The current latest release of surefire does not include the fix.

       <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.22.1</version>
          <!--
               Bug: SUREFIRE-1588
               https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911925
          -->
          <configuration>
            <useSystemClassLoader>false</useSystemClassLoader>
          </configuration>
        </plugin>


I'll do the fix and a few other plugin updates (surefire, compiler, shade)
JENA-1624

      Andy

Reply via email to