Downgrade plexus-classworlds from 2.11.0 to 2.9.0#12092
Merged
Conversation
Classworlds 2.11.0 introduced a bug in ConfigurationParser.loadGlob where the glob file filter uses || (OR) instead of && (AND), causing patterns like "maven-*.jar" to match all jars. On Linux ext4, where File.listFiles() returns non-deterministic ordering, this leads to unpredictable classloading order and class collisions between maven-embedder and sisu-plexus (PlexusXmlBeanConverter), breaking lifecycle configuration injection. Fix: codehaus-plexus/plexus-classworlds#147 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
cstamas
approved these changes
May 19, 2026
slawekjaranowski
approved these changes
May 19, 2026
slawekjaranowski
approved these changes
May 19, 2026
Member
|
Does 3.x also affected? |
Contributor
Author
|
Maven 3.9.x also uses classworlds 2.11.0, so the
The 4.0.x That said, it would still be good to align 3.9.x with the fix once classworlds ships 2.11.1, to avoid any future surprises. Claude Code on behalf of Guillaume Nodet |
|
@gnodet Please assign appropriate label to PR according to the type of change. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Root Cause
Classworlds 2.11.0 introduced a bug in
ConfigurationParser.loadGlob()(commit 4f4cfe64) where an automated code cleanup incorrectly changed&&to||in the glob file filter. This causesload maven-*.jarinm2.confto match all.jarfiles instead of only those starting withmaven-.On Linux ext4,
File.listFiles()returns non-deterministic ordering (inode hash order). After a recent GitHub Actions runner image update (ubuntu24/20260513.135),org.eclipse.sisu.plexus-1.0.0.jarloads beforemaven-embedder-4.0.0-SNAPSHOT.jar, causing Sisu'sPlexusXmlBeanConverter(without XmlNode handling) to win the class collision. This breaks lifecycle configuration injection for any component usingXmlNodefields (e.g.,LifecycleMojo.configuration).This is the root cause of all 5 backport PR failures (#12071, #12070, #12073, #12077, #12079) — they are all innocent bystanders.
Upstream fix: codehaus-plexus/plexus-classworlds#147
Once classworlds ships a fix (2.11.1+), we can upgrade again.
Claude Code on behalf of Guillaume Nodet