Class DefaultPomManager
java.lang.Object
org.apache.maven.archetype.common.DefaultPomManager
- All Implemented Interfaces:
PomManager
-
Field Summary
Fields inherited from interface org.apache.maven.archetype.common.PomManager
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
org.apache.maven.model.Model
org.apache.maven.model.Model
readPom
(InputStream pomStream) void
-
Constructor Details
-
DefaultPomManager
public DefaultPomManager()
-
-
Method Details
-
addModule
public void addModule(File pom, String artifactId) throws IOException, ParserConfigurationException, TransformerException, SAXException, InvalidPackaging, ArchetypeTemplateProcessingException - Specified by:
addModule
in interfacePomManager
- Throws:
IOException
ParserConfigurationException
TransformerException
SAXException
InvalidPackaging
ArchetypeTemplateProcessingException
-
addParent
public void addParent(File pom, File parentPom) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException - Specified by:
addParent
in interfacePomManager
- Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
mergePoms
public void mergePoms(File pom, File temporaryPom) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException - Specified by:
mergePoms
in interfacePomManager
- Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
readPom
public org.apache.maven.model.Model readPom(File pomFile) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException - Specified by:
readPom
in interfacePomManager
- Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
readPom
public org.apache.maven.model.Model readPom(InputStream pomStream) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException - Specified by:
readPom
in interfacePomManager
- Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
writePom
public void writePom(org.apache.maven.model.Model model, File pomFile, File initialPomFile) throws IOException - Specified by:
writePom
in interfacePomManager
- Throws:
IOException
-