@Dependent public class POMContentHandler extends Object
Constructor and Description |
---|
POMContentHandler() |
Modifier and Type | Method and Description |
---|---|
org.apache.maven.model.Model |
convert(POM pom) |
org.apache.maven.model.Model |
convert(POM pom,
org.apache.maven.model.Model model) |
POM |
toModel(String pomAsString) |
String |
toString(POM pomModel) |
String |
toString(POM gavModel,
String originalPomAsText) |
public String toString(POM pomModel) throws IOException
IOException
public String toString(POM gavModel, String originalPomAsText) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
gavModel
- The model that is savedoriginalPomAsText
- The original pom in text form, since the guvnor POM model does not cover all the pom.xml features.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public POM toModel(String pomAsString) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public org.apache.maven.model.Model convert(POM pom, org.apache.maven.model.Model model)
public org.apache.maven.model.Model convert(POM pom)
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.