Repository navigation
Remove the Jansi dependency - #451
Open
slachiewicz wants to merge 1 commit into
Open
slachiewicz wants to merge 1 commit into
slachiewicz wants to merge 1 commit into
Conversation
The logging package writes ANSI escape sequences itself and reaches the org.fusesource.jansi API only through reflection. That API is how a plugin learns Maven's color setting: Maven 3.9 exports real Jansi, and Maven 3.10 exports compatible Ansi, AnsiConsole, AnsiPrintStream and AnsiMode classes. Keep the reflective lookup; linking Jansi directly again would tie the library to an artifact Maven no longer ships.
slachiewicz
marked this pull request as ready for review
November 8, 2026 12:39
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.
org.apache.maven.shared.utils.loggingno longer depends on Jansi. It writes the ANSI escape sequences itself and calls theorg.fusesource.jansiAPI that Maven core exports only through reflection, because that API is how a plugin learns Maven's color setting. Maven 3.9 exports real Jansi, and Maven 3.10 exports compatibleAnsi,AnsiConsole,AnsiPrintStreamandAnsiModeclasses, including after apache/maven#13888. Without them, output stays plain, as before.The output is the same as Jansi 2.4.3 produced, byte for byte, with color enabled and disabled;
MessageUtilsTestchecks this against Jansi, which stays a test dependency. The public API doesn't change.Verified:
mvn verify→ 806 tests, 0 failures; checkstyle, RAT and spotless pass. I have not run a plugin under a real Maven 3.9 or 3.10 with this build.