Hi Gary, On 5.05.2026 23:30, Gary Gregory wrote: > But I'm using Java 17: > > java -version > openjdk version "17.0.19" 2026-04-21 > OpenJDK Runtime Environment Homebrew (build 17.0.19+0) > OpenJDK 64-Bit Server VM Homebrew (build 17.0.19+0, mixed mode, sharing) > > The build doesn't run at all on Java 8: > > CI=true mvn clean verify \ > -P docker \ > -Ddocker-maven-plugin.version=0.48.1 > Unrecognized option: --add-exports > Error: Could not create the Java Virtual Machine. > Error: A fatal exception has occurred. Program will exit. > > java -version > java version "1.8.0_471" > Java(TM) SE Runtime Environment (build 1.8.0_471-b09) > Java HotSpot(TM) 64-Bit Server VM (build 25.471-b09, mixed mode)
When CI=true, the Surefire plugin uses Maven Toolchains to run the tests using JDK 8. Can you check in your ~/.m2/toolchains.xml file, which JDK 8 version do you have configured there? Piotr
