@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
IOExceptionpublic 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.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionpublic POM toModel(String pomAsString) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionpublic 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–2020 JBoss by Red Hat. All rights reserved.