From 9ee76b6f410141f0df8de11f4e57214fceb21e2c Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Thu, 17 Sep 2026 16:22:46 -0400 Subject: [PATCH] Exclude logback-classic from generate-configprops plugin dependency spring-cloud-build-docs is consumed via the jar-with-dependencies classifier, which already bundles a matched logback-classic/ logback-core pair. exec-maven-plugin's includePluginDependencies classpath merge also separately resolves the dependency's own unversioned logback-classic, landing an old, incompatible logback-classic/logback-core split across the uber jar and the separately-resolved thin jar. Depending on classpath ordering this intermittently fails generate-configprops with: java.lang.NoSuchMethodError: 'java.lang.ClassLoader ch.qos.logback.core.util.Loader.systemClassloaderIfNull(java.lang.ClassLoader)' Excluding logback-classic (and transitively logback-core) forces the classpath to rely solely on the bundled, self-consistent pair. --- pom.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pom.xml b/pom.xml index cbbafa27..9fc13e39 100644 --- a/pom.xml +++ b/pom.xml @@ -1248,6 +1248,20 @@ ${spring-cloud-build-docs-classifier} jar + + + + ch.qos.logback + logback-classic + +