org.apache.maven.plugins.release
Class PrepareReleaseMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugins.release.AbstractReleaseMojo
          extended by org.apache.maven.plugins.release.PrepareReleaseMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
PrepareWithPomReleaseMojo

public class PrepareReleaseMojo
extends AbstractReleaseMojo

Prepare for a release in SCM. For more info see this example.

Version:
$Id: PrepareReleaseMojo.html 816525 2012-05-08 11:35:10Z hboutemy $
Author:
John Casey, Emmanuel Venisse, Jason van Zyl, Brett Porter

Field Summary
protected  org.apache.maven.execution.MavenSession session
           
 
Fields inherited from class org.apache.maven.plugins.release.AbstractReleaseMojo
basedir, javaHome, localRepoDirectory, mavenExecutorId, mavenHome, project, reactorProjects, releaseManager, settings
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
PrepareReleaseMojo()
           
 
Method Summary
 void execute()
          
protected  void prepareRelease(boolean generateReleasePoms)
           
 
Methods inherited from class org.apache.maven.plugins.release.AbstractReleaseMojo
addArgument, createReleaseDescriptor, getAdditionalProfiles, getReactorProjects, getReleaseEnvironment, setBasedir
 
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
 

Field Detail

session

protected org.apache.maven.execution.MavenSession session
Since:
2.0
Constructor Detail

PrepareReleaseMojo

public PrepareReleaseMojo()
Method Detail

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 AbstractReleaseMojo
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-2010 The Apache Software Foundation. All Rights Reserved.