Package org.l2x6.cq

Class PomTransformer


  • public class PomTransformer
    extends Object
    A utility to transform pom.xml files on the DOM level while keeping the original comments and formatting also on places where common javax.xml.transform.Transformer or javax.xml.parsers.DocumentBuilder based solutions tend to fail, such as
    • Order of XML declaration attributes
    • Whitespace after the XML declaration
    • Line breaks between element attributes
    • File final whitespace