Fix incompatible extensions in mvnup for Maven 4#12120
Merged
Merged
Conversation
Add extension handling to mvnup that automatically fixes known Maven 4-incompatible extensions in .mvn/extensions.xml: - Replace os-maven-plugin (kr.motd.maven) with Maveniverse Nisse (eu.maveniverse.maven.nisse:extension:0.4.4) which works with both Maven 3 and 4. Also adds -Dnisse.compat.osDetector to .mvn/maven.config for drop-in compatibility. - Remove Develocity/Gradle Enterprise extensions (com.gradle) which depend on org.slf4j.impl.SimpleLogger not available in Maven 4. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
cstamas
approved these changes
May 20, 2026
|
@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
kr.motd.maven:os-maven-pluginwith Maveniverse Nisse (eu.maveniverse.maven.nisse:extension:0.4.4) in.mvn/extensions.xml— os-maven-plugin tries to mutate unmodifiable session properties in Maven 4. Nisse is a drop-in replacement compatible with both Maven 3 and 4. Also adds-Dnisse.compat.osDetectorto.mvn/maven.config.com.gradle:develocity-maven-extensionandcom.gradle:gradle-enterprise-maven-extension— these depend onorg.slf4j.impl.SimpleLoggerwhich is not available in Maven 4's classpath.These changes fix ~7 repos in the Maven 4 compatibility test suite (gnodet/maven4-testing).
Test plan
Claude Code on behalf of Guillaume Nodet
🤖 Generated with Claude Code