[
https://issues.apache.org/jira/browse/MRELEASE-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16953500#comment-16953500
]
John Lin commented on MRELEASE-1008:
------------------------------------
Maven Release Plugin use JDOM to write XML documents:
[https://github.com/apache/maven-release/blob/master/maven-release-manager/src/main/java/org/apache/maven/shared/release/transform/jdom/JDomModelETL.java#L211-L231]
Since JDOM doesn't support modifying the XML document without changing the
original XML format, this issue seems to be unsolvable.
There may be some other opensource projects mentioned
[here|https://stackoverflow.com/questions/2499011/modify-xml-node-but-keep-the-xml-file-format-intact]
to modify XML document while keeping the original XML format, but they all
look like dead projects and are not being maintained.
> Changed formatting of pom file for multiline attributes during version bump
> ---------------------------------------------------------------------------
>
> Key: MRELEASE-1008
> URL: https://issues.apache.org/jira/browse/MRELEASE-1008
> Project: Maven Release Plugin
> Issue Type: Bug
> Reporter: Roman Ivanov
> Priority: Major
>
> during release, plugin create commit for version bump.
> BUT in addition to this it change formatting of some tags -
> https://github.com/checkstyle/checkstyle/commit/29a635421d9292673bbaaf0c0693d2191dfb5f18
> Plugin changes multiline attributes formatting to single-line.
> In Checkstyle project we control length of lines in files to ease code review
> in web. This allow us to avoid vertical scrolls, ...... .
> Such unexpected change triggered build problem right after release and make
> it impossible to keep user-defined formatting .
> Also reported at:
> https://stackoverflow.com/questions/49085502/maven-release-plugin-changes-pom-formatting
--
This message was sent by Atlassian Jira
(v8.3.4#803005)