qxo opened a new pull request, #128: URL: https://github.com/apache/maven-archetype/pull/128
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 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: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org