Re: [VOTE] Release Apache Log4j `2.26.0`

"Piotr P. Karwasz" <[email protected]> Tue, 5 May 2026 23:35:26 +0200
Newsgroups gmane.comp.jakarta.log4j.devel
Message-ID <08403a4f-0ec1-4df0-9d31-14bc01f5c9e1__8856.65712864778$1778016956$gmane$org@mailing.copernik.eu>
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