Class PerformReleaseMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.release.AbstractReleaseMojo
org.apache.maven.plugins.release.PerformReleaseMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
StageReleaseMojo
@Mojo(name="perform",
aggregator=true,
requiresProject=false)
public class PerformReleaseMojo
extends AbstractReleaseMojo
Perform a release from SCM, either from a specified tag, or the tag representing the previous release in
the working copy created by release:prepare.
For more info see https://maven.apache.org/plugins/maven-release-plugin/examples/perform-release.html.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe SCM URL to checkout from.private booleanDry run: don't checkout anything from the scm repository, or modify the checkout.(package private) StringA space separated list of goals to execute on deployment.private booleanUse a local checkout instead of doing a checkout from the upstream repository.private StringThe SCM password to use.Add a new or overwrite the default implementation per provider.private StringComma separated profiles to enable on deployment, in addition to active profiles for project execution.private org.apache.maven.scm.manager.ScmManagerThe SCM manager.private booleanDeprecated.The release profile will be removed from future versions of the super POMprivate StringThe SCM username to use.private FileThe checkout directory.Fields 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 AbstractReleaseMojo
addArgument, createReleaseDescriptor, getBasedir, getCommonBasedir, getReactorProjects, getReleaseEnvironment, getSettings, setBasedir, setPomFileName, setReleaseManagerMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
goals
A space separated list of goals to execute on deployment. Default value is eitherdeployordeploy site-deploy, if the project has a <distributionManagement>/<site> element. -
releaseProfiles
Comma separated profiles to enable on deployment, in addition to active profiles for project execution.- Since:
- 2.0-beta-8
-
workingDirectory
@Parameter(defaultValue="${project.build.directory}/checkout", property="workingDirectory", required=true) private File workingDirectoryThe checkout directory. -
connectionUrl
The SCM URL to checkout from. If omitted, the one from therelease.propertiesfile is used, followed by the URL from the current POM. -
localCheckout
@Parameter(defaultValue="false", property="localCheckout") private boolean localCheckoutUse a local checkout instead of doing a checkout from the upstream repository. ATTENTION: This will only work with distributed SCMs which support the file:// protocol like e.g. git, jgit or hg! TODO: we should think about having the defaults for the various SCM providers provided via modello!- Since:
- 2.0 for release:perform and 2.5.2 for release:stage
-
username
The SCM username to use. -
password
The SCM password to use. -
useReleaseProfile
@Parameter(defaultValue="false", property="useReleaseProfile") @Deprecated private boolean useReleaseProfileDeprecated.The release profile will be removed from future versions of the super POMWhether to use the release profile that adds sources and javadocs to the released artifact, if appropriate. If set to true, the release plugin sets the property "performRelease" to true, which activates the profile "release-profile", which is inherited from the super pom. -
dryRun
@Parameter(defaultValue="false", property="dryRun") private boolean dryRunDry run: don't checkout anything from the scm repository, or modify the checkout. The goals (by default at leastdeploy) will not be executed. -
providerImplementations
-
scmManager
@Component private org.apache.maven.scm.manager.ScmManager scmManagerThe SCM manager.
-
-
Constructor Details
-
PerformReleaseMojo
public PerformReleaseMojo()
-
-
Method Details
-
getAdditionalProfiles
Description copied from class:AbstractReleaseMojoGets the comma separated list of additional profiles for the release build.- Overrides:
getAdditionalProfilesin classAbstractReleaseMojo- Returns:
- additional profiles to enable during release
-
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
-
setDeploymentRepository
void setDeploymentRepository()Just here so it may be overridden by StageReleaseMojo -
createGoals
void createGoals()Just here so it may be overridden by StageReleaseMojo
-