From 6fa1b6074f4b8eb1b0b7e2339455266352fd4a17 Mon Sep 17 00:00:00 2001 From: Hugo Hills Date: Tue, 15 Sep 2026 21:43:41 +0100 Subject: [PATCH] Override xtext-dev-bom's junit-platform pin to match junit.version xtext-dev-bom (imported above junit-bom in dependencyManagement) pins junit-platform-commons/junit-platform-engine to its own junit-platform-version (1.10.2), and since it's imported first, that pin wins over junit-bom's. Bumping junit.version to 6.1.3 left junit-jupiter-engine:6.1.3 running against junit-platform-engine:1.10.2, which predates the closeAutoCloseables() API jupiter-engine 6.1.3 calls: java.lang.NoSuchMethodError: 'org.junit.platform.engine.support.store.NamespacedHierarchicalStore$CloseAction org.junit.platform.engine.support.store.NamespacedHierarchicalStore$CloseAction.closeAutoCloseables()' Fix: add explicit dependencyManagement entries for junit-platform-commons and junit-platform-engine at ${junit.version}, mirroring the existing junit-jupiter-api/junit-jupiter-engine overrides right above them. Verified: `mvn dependency:tree` now resolves junit-platform-* to 6.1.3, and `mvn test` passes all 94 tests (previously failed with the error above). --- pom.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pom.xml b/pom.xml index da4e7e5..e5aa766 100644 --- a/pom.xml +++ b/pom.xml @@ -217,6 +217,20 @@ junit-jupiter-engine ${junit.version} + + + org.junit.platform + junit-platform-commons + ${junit.version} + + + org.junit.platform + junit-platform-engine + ${junit.version} + org.mockito mockito-bom