Class CommonsDistributionStagingMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="stage-distributions",
defaultPhase=DEPLOY,
threadSafe=true,
aggregator=true)
public final class CommonsDistributionStagingMojo
extends org.apache.maven.plugin.AbstractMojo
Checks out the dev distribution location, copies the distributions into that directory
structure under the
target/commons-release-plugin/scm directory, and commits the
distributions back to SVN. Includes the built and zipped site as well as the RELEASE-NOTES.txt file.- Since:
- 1.0
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected voidsetBaseDir(File baseDir) Sets thebaseDirfield for use in unit tests.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
CommonsDistributionStagingMojo
public CommonsDistributionStagingMojo()Constructs a new instance.
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
setBaseDir
Sets thebaseDirfield for use in unit tests.- Parameters:
baseDir- is theFileto be used as the project's root directory when this mojo is invoked.
-