You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/05/11 16:58:00 UTC

[jira] [Commented] (ARCHETYPE-637) PomUtils.addNewModule Pretty-Printing has issue on java 9+

    [ https://issues.apache.org/jira/browse/ARCHETYPE-637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17845629#comment-17845629 ] 

ASF GitHub Bot commented on ARCHETYPE-637:
------------------------------------------

oeiutomo commented on PR #128:
URL: https://github.com/apache/maven-archetype/pull/128#issuecomment-2105954687

   Hi all..
   Thank you for sharing and explain the problem here
   Me too waiting for the next plugin release..is there any plan to release this changes?
   Thank you so much




> PomUtils.addNewModule Pretty-Printing has issue on java 9+
> ----------------------------------------------------------
>
>                 Key: ARCHETYPE-637
>                 URL: https://issues.apache.org/jira/browse/ARCHETYPE-637
>             Project: Maven Archetype
>          Issue Type: Bug
>          Components: Generator
>            Reporter: qxo
>            Assignee: Tamas Cservenak
>            Priority: Minor
>             Fix For: 3.3.0
>
>
>  
> *As of Java 9, the _Transformer_ class's pretty-print feature doesn't define the actual format. Therefore, whitespace-only nodes will be outputted as well.* This has been discussed in this [JDK bug ticket|https://bugs.openjdk.java.net/browse/JDK-8262285?attachmentViewMode=list]. Also, [Java 9's release note|https://www.oracle.com/java/technologies/javase/9-notes.html] has explained this in the xml/jaxp section.
> *If we want our pretty-print method to always generate the same format under various Java versions, we need to provide a stylesheet file.*
> ref:
>    [https://bugs.openjdk.java.net/browse/JDK-8262285?attachmentViewMode=list]
>    [https://www.baeldung.com/java-pretty-print-xml#pretty-printing-xml-with-the-transformer-class]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)