org.apache.maven.shared.release.phase
Class MapVersionsPhase
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.shared.release.phase.AbstractReleasePhase
org.apache.maven.shared.release.phase.MapVersionsPhase
- All Implemented Interfaces:
- ReleasePhase, org.codehaus.plexus.logging.LogEnabled
public class MapVersionsPhase
- extends AbstractReleasePhase
Map projects to their new versions after release / into the next development cycle.
The map-phases per goal are:
- release:prepare
- map-release-versions + map-development-versions; RD.isBranchCreation() = false
- release:branch
- map-branch-versions + map-development-versions; RD.isBranchCreation() = true
- release:update-versions
- map-development-versions; RD.isBranchCreation() = false
| MapVersionsPhase field | map-release-versions | map-branch-versions | map-development-versions |
| convertToSnapshot | false | true | true |
| convertToBranch | false | true | false |
- Author:
- Brett Porter, Robert Scholte
| 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 |
MapVersionsPhase
public MapVersionsPhase()
execute
public ReleaseResult execute(ReleaseDescriptor releaseDescriptor,
ReleaseEnvironment releaseEnvironment,
List<org.apache.maven.project.MavenProject> reactorProjects)
throws ReleaseExecutionException
- 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
simulate
public ReleaseResult simulate(ReleaseDescriptor releaseDescriptor,
ReleaseEnvironment releaseEnvironment,
List<org.apache.maven.project.MavenProject> reactorProjects)
throws ReleaseExecutionException
- 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
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.