org.apache.maven.shared.release.phase
Class GenerateReleasePomsPhase
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.shared.release.phase.AbstractReleasePhase
org.apache.maven.shared.release.phase.AbstractReleasePomsPhase
org.apache.maven.shared.release.phase.GenerateReleasePomsPhase
- All Implemented Interfaces:
- ReleasePhase, org.codehaus.plexus.logging.LogEnabled
public class GenerateReleasePomsPhase
- extends AbstractReleasePomsPhase
Generate release POMs.
- Author:
- Brett Porter, Mark Hobson
- Plexus component:
- role:
- "org.apache.maven.shared.release.phase.ReleasePhase"
- role-hint:
- "generate-release-poms"
|
Fields inherited from interface org.apache.maven.shared.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 |
GenerateReleasePomsPhase
public GenerateReleasePomsPhase()
execute
public ReleaseResult execute(ReleaseDescriptor releaseDescriptor,
ReleaseEnvironment releaseEnvironment,
List<MavenProject> reactorProjects)
throws ReleaseExecutionException,
ReleaseFailureException
- Description copied from interface:
ReleasePhase
- Execute the phase.
- Parameters:
releaseDescriptor
- the configuration to usereleaseEnvironment
- the environmental configuration, such as Maven settings, Maven home, etc.reactorProjects
- the reactor projects
- Returns:
- the release result
- Throws:
ReleaseExecutionException
- an exception during the execution of the phase
ReleaseFailureException
- a failure during the execution of the phase
simulate
public ReleaseResult simulate(ReleaseDescriptor releaseDescriptor,
ReleaseEnvironment releaseEnvironment,
List<MavenProject> reactorProjects)
throws ReleaseExecutionException,
ReleaseFailureException
- Description copied from interface:
ReleasePhase
- Simulate the phase, but don't make any changes to the project.
- Parameters:
releaseDescriptor
- the configuration to usereleaseEnvironment
- the environmental configuration, such as Maven settings, Maven home, etc.reactorProjects
- the reactor projects
- Returns:
- the release result
- Throws:
ReleaseExecutionException
- an exception during the execution of the phase
ReleaseFailureException
- a failure during the execution of the phase
getOriginalVersionMap
protected Map<String,String> getOriginalVersionMap(ReleaseDescriptor releaseDescriptor,
List<MavenProject> reactorProjects)
getNextVersionMap
protected Map<String,String> getNextVersionMap(ReleaseDescriptor releaseDescriptor)
clean
public ReleaseResult clean(List<MavenProject> reactorProjects)
- 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:
reactorProjects
- the reactor projects
- Returns:
- the release result
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.