You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(maven): Preserve XML attributes when updating pom.xml files (#279)
* fix: preserve XML attributes when updating Maven pom.xml files
The XMLParser and XMLBuilder from fast-xml-parser were instantiated
without attribute-related options, causing all XML attributes to be
silently stripped during version bumping. This corrupted pom.xml files
that contained elements with attributes (e.g., plugin configurations).
Configure the parser with ignoreAttributes: false, parseTagValue: false,
and parseAttributeValue: false, and the builder with matching options
to preserve attributes, prevent boolean shorthand, and handle
self-closing tags correctly.
Fixes#268https://claude.ai/code/session_01MnZuTu64zEfCCP1edZDdo8
* refactor: inline XML options and add explanatory comments
https://claude.ai/code/session_01MnZuTu64zEfCCP1edZDdo8
* refactor: remove unrelated suppressEmptyNode option
https://claude.ai/code/session_01MnZuTu64zEfCCP1edZDdo8
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments