release:stage
Full name:
org.apache.maven.plugins:maven-release-plugin:3.2.0:stage
Description:
Perform a release from SCM to a staging repository. If no goals are given, these default to deploy or deploy site:stage-deploy, if the project has a <distributionManagement>/<site> element. If the goals contain site-deploy or site:deploy, these are overridden with site:stage-deploy.
Attributes:
- Executes as an aggregator goal.
- The goal is not marked as thread-safe and thus does not support parallel builds.
- Since version:
2.0-beta-8.
Required Parameters
| Name | Type | Since | Description |
|---|---|---|---|
<stagingRepository> |
String |
2.0-beta-8 |
URL of the staging repository to use. User Property: stagingRepository |
<workingDirectory> |
File |
- |
The checkout directory. Default: ${project.build.directory}/checkoutUser Property: workingDirectory |
Optional Parameters
| Name | Type | Since | Description |
|---|---|---|---|
<arguments> |
String |
- |
Additional arguments to pass to the Maven executions, separated by spaces. User Property: argumentsAlias: prepareVerifyArgs |
<connectionUrl> |
String |
- |
The SCM URL to checkout from. If omitted, the one from the release.properties file is used, followed by the URL from the current POM.User Property: connectionUrl |
<dryRun> |
boolean |
- |
Dry run: don't checkout anything from the scm repository, or modify the checkout. The goals (by default at least deploy) will not be executed.Default: falseUser Property: dryRun |
<goals> |
String |
- |
A space separated list of goals to execute on release perform. Default value is either deploy or deploy site-deploy, if the project has a <distributionManagement>/<site> element.User Property: goals |
<javaHome> |
File |
2.0-beta-8 |
The Java home parameter to use for forked Maven invocations. Default: ${java.home} |
<localCheckout> |
boolean |
2.0 for release:perform and 2.5.2 for release:stage |
Use 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! Default: falseUser Property: localCheckout |
<localRepoDirectory> |
File |
2.0-beta-8 |
The command-line local repository directory in use for this build (if specified). Default: ${maven.repo.local} |
<mavenExecutorId> |
String |
2.0-beta-8 |
Role hint of the org.apache.maven.shared.release.exec.MavenExecutor implementation to use.Default: invokerUser Property: mavenExecutorId |
<mavenHome> |
File |
2.0-beta-8 |
The Maven home parameter to use for forked Maven invocations. Default: ${maven.home} |
<password> |
String |
- |
The password to use for authentication with the SCM. See also: SCM Authentication User Property: password |
<pomFileName> |
String |
- |
The file name of the POM to execute any goals against. As of version 3.0.0, this defaults to the name of POM file of the project being built. Default: ${project.file.name}User Property: pomFileName |
<privateKey> |
File |
3.2.0 |
The path to the SSH private key to use for authentication with the SCM. See also: SCM Authentication User Property: privateKey |
<providerImplementations> |
Map<String,String> |
2.0-beta-6 |
Add a new or overwrite the default implementation per provider. The key is the scm prefix and the value is the role hint/provider id of the org.apache.maven.scm.provider.ScmProvider.See also: org.apache.maven.scm.manager.ScmManager.setScmProviderImplementation(java.lang.String,java.lang.String), SCM Providers |
<releaseProfiles> |
String |
2.0-beta-8 |
Comma separated profiles to enable on release perform, in addition to active profiles for project execution. User Property: releaseProfiles |
<releaseStrategyId> |
String |
3.0.0-M5 |
The role-hint for the org.apache.maven.shared.release.strategy.Strategy implementation used to specify the phases per goal.See also: org.apache.maven.shared.release.strategies.DefaultStrategy Default: defaultUser Property: releaseStrategyId |
<scmShallowClone> |
boolean |
- |
When cloning a repository if it should be a shallow clone or a full clone. Default: trueUser Property: scmShallowClone |
<serverId> |
String |
3.2.0 |
The server id of the server which provides the credentials for the SCM in the settings.xml file. If not set the default lookup uses the SCM URL to construct the server id like this: server-id=scm-host[":"scm-port].
Currently the POM does not allow to specify a server id for the SCM section. Explicit authentication information provided via See also: SCM Authentication Default: ${project.scm.id}User Property: project.scm.id |
<useReleaseProfile> |
boolean |
- |
Deprecated. The release-profile profile will be removed from future versions of the super POMWhether to use the default release profile (Maven 2 and 3) 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" as inherited from the super pom.Default: falseUser Property: useReleaseProfile |
<username> |
String |
- |
The username to use for authentication with the SCM. See also: SCM Authentication User Property: username |
Parameter Details
<arguments>
Additional arguments to pass to the Maven executions, separated by spaces.
- Type:
java.lang.String - Required:
No - User Property:
arguments - Alias:
prepareVerifyArgs
<connectionUrl>
The SCM URL to checkout from. If omitted, the one from the
release.properties file is used, followed by the URL from the current POM.- Type:
java.lang.String - Required:
No - User Property:
connectionUrl
<dryRun>
Dry run: don't checkout anything from the scm repository, or modify the checkout. The goals (by default at least
deploy) will not be executed.- Type:
boolean - Required:
No - User Property:
dryRun - Default:
false
<goals>
A space separated list of goals to execute on release perform. Default value is either
deploy or deploy site-deploy, if the project has a <distributionManagement>/<site> element.- Type:
java.lang.String - Required:
No - User Property:
goals
<javaHome>
The Java home parameter to use for forked Maven invocations.
- Type:
java.io.File - Since:
2.0-beta-8 - Required:
No - Default:
${java.home}
<localCheckout>
Use 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!
- Type:
boolean - Since:
2.0 for release:perform and 2.5.2 for release:stage - Required:
No - User Property:
localCheckout - Default:
false
<localRepoDirectory>
The command-line local repository directory in use for this build (if specified).
- Type:
java.io.File - Since:
2.0-beta-8 - Required:
No - Default:
${maven.repo.local}
<mavenExecutorId>
Role hint of the
org.apache.maven.shared.release.exec.MavenExecutor implementation to use.- Type:
java.lang.String - Since:
2.0-beta-8 - Required:
No - User Property:
mavenExecutorId - Default:
invoker
<mavenHome>
The Maven home parameter to use for forked Maven invocations.
- Type:
java.io.File - Since:
2.0-beta-8 - Required:
No - Default:
${maven.home}
<password>
The password to use for authentication with the SCM.
See also: SCM Authentication
See also: SCM Authentication
- Type:
java.lang.String - Required:
No - User Property:
password
<pomFileName>
The file name of the POM to execute any goals against. As of version 3.0.0, this defaults to the name of POM file of the project being built.
- Type:
java.lang.String - Required:
No - User Property:
pomFileName - Default:
${project.file.name}
<privateKey>
The path to the SSH private key to use for authentication with the SCM.
See also: SCM Authentication
See also: SCM Authentication
- Type:
java.io.File - Since:
3.2.0 - Required:
No - User Property:
privateKey
<providerImplementations>
Add a new or overwrite the default implementation per provider. The key is the scm prefix and the value is the role hint/provider id of the
See also: org.apache.maven.scm.manager.ScmManager.setScmProviderImplementation(java.lang.String,java.lang.String), SCM Providers
org.apache.maven.scm.provider.ScmProvider.See also: org.apache.maven.scm.manager.ScmManager.setScmProviderImplementation(java.lang.String,java.lang.String), SCM Providers
- Type:
java.util.Map<java.lang.String, java.lang.String> - Since:
2.0-beta-6 - Required:
No
<releaseProfiles>
Comma separated profiles to enable on release perform, in addition to active profiles for project execution.
- Type:
java.lang.String - Since:
2.0-beta-8 - Required:
No - User Property:
releaseProfiles
<releaseStrategyId>
The role-hint for the
See also: org.apache.maven.shared.release.strategies.DefaultStrategy
org.apache.maven.shared.release.strategy.Strategy implementation used to specify the phases per goal.See also: org.apache.maven.shared.release.strategies.DefaultStrategy
- Type:
java.lang.String - Since:
3.0.0-M5 - Required:
No - User Property:
releaseStrategyId - Default:
default
<scmShallowClone>
When cloning a repository if it should be a shallow clone or a full clone.
- Type:
boolean - Required:
No - User Property:
scmShallowClone - Default:
true
<serverId>
The server id of the server which provides the credentials for the SCM in the settings.xml file. If not set the default lookup uses the SCM URL to construct the server id like this:
See also: SCM Authentication
server-id=scm-host[":"scm-port].
Currently the POM does not allow to specify a server id for the SCM section.
Explicit authentication information provided via username, password or privateKey will take precedence.
See also: SCM Authentication
- Type:
java.lang.String - Since:
3.2.0 - Required:
No - User Property:
project.scm.id - Default:
${project.scm.id}
<stagingRepository>
URL of the staging repository to use.
- Type:
java.lang.String - Since:
2.0-beta-8 - Required:
Yes - User Property:
stagingRepository
<useReleaseProfile>
Deprecated.
The
The
release-profile profile will be removed from future versions of the super POMWhether to use the default release profile (Maven 2 and 3) 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" as inherited from the super pom.- Type:
boolean - Required:
No - User Property:
useReleaseProfile - Default:
false
<username>
The username to use for authentication with the SCM.
See also: SCM Authentication
See also: SCM Authentication
- Type:
java.lang.String - Required:
No - User Property:
username
<workingDirectory>
The checkout directory.
- Type:
java.io.File - Required:
Yes - User Property:
workingDirectory - Default:
${project.build.directory}/checkout


