Class RollbackReleaseMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.release.AbstractReleaseMojo
org.apache.maven.plugins.release.AbstractScmReleaseMojo
org.apache.maven.plugins.release.RollbackReleaseMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="rollback",
aggregator=true)
public class RollbackReleaseMojo
extends AbstractScmReleaseMojo
Rollback changes made by a previous release. This requires that the previous release descriptor
release.properties is still available in the local working copy. For more info see https://maven.apache.org/plugins/maven-release-plugin/examples/rollback-release.html.
- Since:
- 2.0-beta-5
- Version:
- $Id$
-
Field Summary
FieldsFields inherited from class AbstractReleaseMojo
project, releaseManager, sessionFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractScmReleaseMojo
buildScm, createReleaseDescriptorMethods inherited from class AbstractReleaseMojo
addArgument, getAdditionalProfiles, getBasedir, getCommonBasedir, getReactorProjects, getReleaseEnvironment, getSettings, setBasedir, setPomFileName, setReleaseManagerMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
scmRollbackCommitComment
@Parameter(defaultValue="@{prefix} rollback the release of @{releaseLabel}", property="scmRollbackCommitComment") private String scmRollbackCommitCommentThe SCM commit comment when rolling back. Defaults to "@{prefix} rollback the release of @{releaseLabel}".Property interpolation is performed on the value, but in order to ensure that the interpolation occurs during release, you must use
@{...}to reference the properties rather than${...}. The following properties are available:prefix- The comment prefix.groupId- The groupId of the root project.artifactId- The artifactId of the root project.releaseLabel- The release version of the root project.
- Since:
- 3.0.0
-
-
Constructor Details
-
RollbackReleaseMojo
public RollbackReleaseMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractScmReleaseMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-