Skip to content

Switch mvnup to domtrip - #11432

Merged
gnodet merged 3 commits into
apache:masterfrom
gnodet:domtrip
Nov 18, 2025
Merged

gnodet merged 3 commits into
apache:masterfrom
gnodet:domtrip

Conversation

@gnodet

@gnodet gnodet commented Nov 12, 2025

Copy link
Copy Markdown
Contributor

This PR switches the mvnup tool to use DomTrip instead of JDOM for better XML roundtrip, as JDOM, like all compliant XML parsers focuses on the infoset and not on preserving formatting.

Relates to apache/maven-release#1381

@gnodet gnodet added this to the 4.1.0 milestone Nov 12, 2025

@Bukama Bukama left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the improvement.

@gnodet
gnodet merged commit a336a2c into apache:master Nov 18, 2025
41 of 42 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

@gnodet Please assign appropriate label to PR according to the type of change.

gnodet added a commit that referenced this pull request May 18, 2026
gnodet added a commit that referenced this pull request May 19, 2026
gnodet added a commit that referenced this pull request May 19, 2026
…master (#12082)

* Switch mvnup to domtrip (#11432)

* Port inherited plugin detection tests to domtrip API

Adds InheritedPluginDetectionTests and effective model warning test
from maven-4.0.x branch (834daf2), converted from JDOM2 to domtrip.
Also fixes log level for effective model analysis failures from debug
to warning to avoid silently swallowing errors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants