org.apache.maven.plugins.release
Class PrepareReleaseMojo
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.PrepareReleaseMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- PrepareWithPomReleaseMojo
@Mojo(name="prepare",
aggregator=true)
public class PrepareReleaseMojo- extends AbstractScmReleaseMojo
Prepare for a release in SCM. Steps through several phases to ensure the POM is ready to be released and then
prepares SCM to eventually contain a tagged version of the release and a record in the local copy of the parameters
used. This can be followed by a call to release:perform. For more info see http://maven.apache.org/plugins/maven-release-plugin/examples/prepare-release.html.
- Version:
- $Id: PrepareReleaseMojo.java 1389085 2012-09-23 15:50:37Z rfscholte $
- Author:
- John Casey, Emmanuel Venisse, Jason van Zyl, Brett Porter
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrepareReleaseMojo
public PrepareReleaseMojo()
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
prepareRelease
protected void prepareRelease(boolean generateReleasePoms)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.