org.apache.maven.archetype.common
Class DefaultPomManager
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.archetype.common.DefaultPomManager
- All Implemented Interfaces:
- PomManager, org.codehaus.plexus.logging.LogEnabled
public class DefaultPomManager
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements PomManager
- Plexus component
Fields inherited from interface org.apache.maven.archetype.common.PomManager |
ROLE |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPomManager
public DefaultPomManager()
addModule
public void addModule(File pom,
String artifactId)
throws IOException,
XmlPullParserException,
org.dom4j.DocumentException,
InvalidPackaging
- Specified by:
addModule
in interface PomManager
- Throws:
IOException
XmlPullParserException
org.dom4j.DocumentException
InvalidPackaging
addParent
public void addParent(File pom,
File parentPom)
throws IOException,
XmlPullParserException
- Specified by:
addParent
in interface PomManager
- Throws:
IOException
XmlPullParserException
mergePoms
public void mergePoms(File pom,
File temporaryPom)
throws IOException,
XmlPullParserException
- Specified by:
mergePoms
in interface PomManager
- Throws:
IOException
XmlPullParserException
readPom
public Model readPom(File pomFile)
throws IOException,
XmlPullParserException
- Specified by:
readPom
in interface PomManager
- Throws:
IOException
XmlPullParserException
readPom
public Model readPom(InputStream pomStream)
throws IOException,
XmlPullParserException
- Specified by:
readPom
in interface PomManager
- Throws:
IOException
XmlPullParserException
writePom
public void writePom(Model model,
File pomFile,
File initialPomFile)
throws IOException
- Specified by:
writePom
in interface PomManager
- Throws:
IOException
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.