gnodet opened a new issue, #14165: URL: https://github.com/apache/maven/issues/14165
## Problem When mvnup modifies POM files (adding plugin management entries, upgrading plugin versions), the resulting XML does not always conform to the project's XML formatting rules. Projects using `au.com.acegi:xml-format-maven-plugin` with the `xml-check` goal bound to the build lifecycle fail because mvnup-modified POMs are detected as "needing formatting". ## Affected projects - `apache/cassandra-java-driver` (gnodet/maven4-testing #41879) — 17 POMs reported as "Needs formatting" after mvnup modifies them ## Observed output ``` [ERROR] [xml-check] Needs formatting:/path/to/pom.xml [ERROR] [xml-check] Needs formatting:/path/to/other/pom.xml ... (17 POMs) [ERROR] BUILD FAILURE ``` ## Root cause mvnup's XML serializer does not preserve the project's XML formatting conventions (indentation style, attribute ordering, whitespace handling). The existing build command already includes `-Dspotless.check.skip=true -Dsort.skip=true` but does not include a skip property for `xml-format-maven-plugin`. ## Expected behavior One or more of: 1. mvnup should add `-Dxml-format.skip=true` (the standard skip property for `xml-format-maven-plugin`) to the Maven 4 build command flags, similar to how `-Dspotless.check.skip=true` is already added, OR 2. mvnup's XML serializer should better preserve the original formatting of modified sections. Note: the existing maven4-testing build already adds `-Dspotless.check.skip=true -Dsort.skip=true -Drat.skip=true` for similar reasons. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
