@Component(role=PomManager.class) public class DefaultPomManager extends org.codehaus.plexus.logging.AbstractLogEnabled implements PomManager
ROLE
Constructor and Description |
---|
DefaultPomManager() |
Modifier and Type | Method and Description |
---|---|
void |
addModule(File pom,
String artifactId) |
void |
addParent(File pom,
File parentPom) |
void |
mergePoms(File pom,
File temporaryPom) |
Model |
readPom(File pomFile) |
Model |
readPom(InputStream pomStream) |
void |
writePom(Model model,
File pomFile,
File initialPomFile) |
public void addModule(File pom, String artifactId) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException, org.dom4j.DocumentException, InvalidPackaging
addModule
in interface PomManager
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
org.dom4j.DocumentException
InvalidPackaging
public void addParent(File pom, File parentPom) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
addParent
in interface PomManager
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public void mergePoms(File pom, File temporaryPom) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
mergePoms
in interface PomManager
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public Model readPom(File pomFile) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
readPom
in interface PomManager
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public Model readPom(InputStream pomStream) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
readPom
in interface PomManager
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public void writePom(Model model, File pomFile, File initialPomFile) throws IOException
writePom
in interface PomManager
IOException
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.