org.apache.maven.archetype.common
Class DefaultPomManager

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by 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


Field Summary
 
Fields inherited from interface org.apache.maven.archetype.common.PomManager
ROLE
 
Constructor Summary
DefaultPomManager()
           
 
Method Summary
 void addModule(File pom, String artifactId)
           
 void addParent(File pom, File parentPom)
           
 void mergePoms(File pom, File temporaryPom)
           
 org.apache.maven.model.Model readPom(File pomFile)
           
 void writePom(org.apache.maven.model.Model model, File pomFile)
           
 
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
 

Constructor Detail

DefaultPomManager

public DefaultPomManager()
Method Detail

addModule

public void addModule(File pom,
                      String artifactId)
               throws FileNotFoundException,
                      IOException,
                      org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                      org.dom4j.DocumentException,
                      InvalidPackaging
Specified by:
addModule in interface PomManager
Throws:
FileNotFoundException
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
org.dom4j.DocumentException
InvalidPackaging

addParent

public void addParent(File pom,
                      File parentPom)
               throws FileNotFoundException,
                      IOException,
                      org.codehaus.plexus.util.xml.pull.XmlPullParserException
Specified by:
addParent in interface PomManager
Throws:
FileNotFoundException
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

mergePoms

public void mergePoms(File pom,
                      File temporaryPom)
               throws FileNotFoundException,
                      IOException,
                      org.codehaus.plexus.util.xml.pull.XmlPullParserException
Specified by:
mergePoms in interface PomManager
Throws:
FileNotFoundException
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

readPom

public org.apache.maven.model.Model readPom(File pomFile)
                                     throws FileNotFoundException,
                                            IOException,
                                            org.codehaus.plexus.util.xml.pull.XmlPullParserException
Specified by:
readPom in interface PomManager
Throws:
FileNotFoundException
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

writePom

public void writePom(org.apache.maven.model.Model model,
                     File pomFile)
              throws IOException
Specified by:
writePom in interface PomManager
Throws:
IOException


Copyright © 2007-2010 Apache Software Foundation. All Rights Reserved.