Bug#1108563: exec-maven-plugin: FTBFS with default Java 25

Vladimir Petko vpa1977 at gmail.com
Tue Jul 1 05:18:23 BST 2025


Source: exec-maven-plugin
Version: 3.1.0-2
Severity: normal
Tags: ftbfs
Usertags: default-java25

Dear Maintainers,

The package exec-maven-plugin ftbfs with default Java 25.
The relevant part of the build log:
---------------
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.codehaus.mojo.exec.ExecMojoTest
[debug] Executing command line: [c7c32380-18bd-498d-83b4-20ba5f246bff, --version]
[debug] got arguments from system properties: -f pom.xml
[debug] Executing command line: [c7c32380-18bd-498d-83b4-20ba5f246bff, -f, pom.xml]
[debug] Toolchains are ignored, 'executable' parameter is set to target/javax
[debug] Executing command line: [c7c32380-18bd-498d-83b4-20ba5f246bff, --version]
[error] Result of [c7c32380-18bd-498d-83b4-20ba5f246bff, --version] execution is: '1'.
[debug] Executing command line: [c7c32380-18bd-498d-83b4-20ba5f246bff, --version]
[error] Command execution failed.

org.apache.commons.exec.ExecuteException: simulated failure (Exit value: 0)
	at org.codehaus.mojo.exec.ExecMojoTest$MockExecMojo.executeCommandLine(ExecMojoTest.java:82)
	at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:471)
	at org.codehaus.mojo.exec.ExecMojoTest.testRunError(ExecMojoTest.java:381)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)

[debug] Executing command line: [c7c32380-18bd-498d-83b4-20ba5f246bff, --version]
[debug] Executing command line: [c7c32380-18bd-498d-83b4-20ba5f246bff, --version]
[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.576 s - in org.codehaus.mojo.exec.ExecMojoTest
[INFO] Running org.codehaus.mojo.exec.ExecJavaMojoTest
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.001 s <<< FAILURE! - in org.codehaus.mojo.exec.ExecJavaMojoTest
[ERROR] initializationError(org.codehaus.mojo.exec.ExecJavaMojoTest)  Time elapsed: 0.001 s  <<< ERROR!
java.lang.ExceptionInInitializerError
	at org.codehaus.mojo.exec.ExecJavaMojoTest.<clinit>(ExecJavaMojoTest.java:55)

[INFO] Running org.codehaus.mojo.exec.URLClassLoaderBuilderTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s - in org.codehaus.mojo.exec.URLClassLoaderBuilderTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR]   ExecJavaMojoTest.initializationError » ExceptionInInitializer
[INFO]
[ERROR] Tests run: 11, Failures: 0, Errors: 1, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
---------------


-- System Information:
Debian Release: trixie/sid
  APT prefers plucky-updates
  APT policy: (500, 'plucky-updates'), (500, 'plucky-security'), (500, 'plucky')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.14.0-22-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled


More information about the pkg-java-maintainers mailing list