Class POMContentHandler


  • @Dependent
    public class POMContentHandler
    extends Object
    • Constructor Detail

      • POMContentHandler

        public POMContentHandler()
    • Method Detail

      • toString

        public String toString​(org.guvnor.common.services.project.model.POM gavModel,
                               String originalPomAsText)
                        throws IOException,
                               org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Parameters:
        gavModel - The model that is saved
        originalPomAsText - The original pom in text form, since the guvnor POM model does not cover all the pom.xml features.
        Returns:
        pom.xml for saving, The original pom.xml with the fields edited in gavModel replaced.
        Throws:
        IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • toModel

        public org.guvnor.common.services.project.model.POM toModel​(String pomAsString)
                                                             throws IOException,
                                                                    org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Throws:
        IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • convert

        public org.apache.maven.model.Model convert​(org.guvnor.common.services.project.model.POM pom,
                                                    org.apache.maven.model.Model model)
      • convert

        public org.apache.maven.model.Model convert​(org.guvnor.common.services.project.model.POM pom)