org.apache.maven.plugins.release.phase
Class AbstractRewritePomsPhase
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.plugins.release.phase.AbstractReleasePhase
org.apache.maven.plugins.release.phase.AbstractRewritePomsPhase
- All Implemented Interfaces:
- ReleasePhase, org.codehaus.plexus.logging.LogEnabled
- Direct Known Subclasses:
- RewritePomsForDevelopmentPhase, RewritePomsForReleasePhase
public abstract class AbstractRewritePomsPhase
- extends AbstractReleasePhase
Base class for rewriting phases.
- Author:
- Brett Porter
| Fields inherited from interface org.apache.maven.plugins.release.phase.ReleasePhase |
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 |
AbstractRewritePomsPhase
public AbstractRewritePomsPhase()
execute
public void execute(ReleaseConfiguration releaseConfiguration)
throws ReleaseExecutionException,
ReleaseFailureException
- Description copied from interface:
ReleasePhase
- Execute the phase.
- Parameters:
releaseConfiguration - the configuration to use
- Throws:
ReleaseExecutionException - an exception during the execution of the phase
ReleaseFailureException - a failure during the execution of the phase
simulate
public void simulate(ReleaseConfiguration releaseConfiguration)
throws ReleaseExecutionException,
ReleaseFailureException
- Description copied from interface:
ReleasePhase
- Simulate the phase, but don't make any changes to the project.
- Parameters:
releaseConfiguration - the configuration to use
- Throws:
ReleaseExecutionException - an exception during the execution of the phase
ReleaseFailureException - a failure during the execution of the phase
clean
public void clean(ReleaseConfiguration config)
- Description copied from interface:
ReleasePhase
- Clean up after a phase if it leaves any additional files in the checkout.
- Specified by:
clean in interface ReleasePhase- Overrides:
clean in class AbstractReleasePhase
- Parameters:
config - the configuration to use
getOriginalVersionMap
protected abstract java.util.Map getOriginalVersionMap(ReleaseConfiguration releaseConfiguration)
getNextVersionMap
protected abstract java.util.Map getNextVersionMap(ReleaseConfiguration releaseConfiguration)
transformScm
protected abstract void transformScm(org.apache.maven.project.MavenProject project,
org.jdom.Element rootElement,
org.jdom.Namespace namespace,
ReleaseConfiguration releaseConfiguration,
java.lang.String projectId,
org.apache.maven.scm.repository.ScmRepository scmRepository)
throws ReleaseExecutionException
- Throws:
ReleaseExecutionException
rewriteElement
protected org.jdom.Element rewriteElement(java.lang.String name,
java.lang.String value,
org.jdom.Element root,
org.jdom.Namespace namespace)
Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.