Class RollbackReleaseMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
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 Details

    • scmRollbackCommitComment

      @Parameter(defaultValue="@{prefix} rollback the release of @{releaseLabel}", property="scmRollbackCommitComment") private String scmRollbackCommitComment
      The 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:
      execute in interface org.apache.maven.plugin.Mojo
      Overrides:
      execute in class AbstractScmReleaseMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException