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

Plexus component

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)
           
 Model readPom(File pomFile)
           
 Model readPom(InputStream pomStream)
           
 void writePom(Model model, File pomFile, File initialPomFile)
           
 
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 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.