Maven Release plugin – release:prepare (original) (raw)

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 https://maven.apache.org/plugins/maven-release-plugin/usage/prepare-release.html.

Parameter Details

Whether to add a schema to the POM if it was previously missing on release.


Whether to allow timestamped SNAPSHOT dependencies. Default is to fail when finding any SNAPSHOT.


Additional arguments to pass to the Maven executions, separated by spaces.


Specifies whether unresolved SNAPSHOT dependencies should automatically be resolved. If this is set, then this specifies the default answer to be used when unresolved SNAPSHOT dependencies should automatically be resolved ( 0:All 1:Project Dependencies 2:Plugins 3:Reports 4:Extensions ). Possible values are:


Whether to automatically assign submodules the parent version. If set to false, the user will be prompted for the version of each submodules.


Command-line version of checkModificationExcludes.


A list of additional exclude filters that will be skipped when checking for modifications on the working copy. Is ignored, when checkModificationExcludes is set.


Commits to do are atomic or by project.


Goals to run on completion of the preparation step, after transformation back to the next development version but before committing. Space delimited.


Default version to use for new local working copy.


Dry run: don't checkin or tag anything in the scm repository, or modify the checkout. Running mvn -DdryRun=true release:prepare is useful in order to check that modifications to poms and scm operations (only listed on the console) are working as expected. Modified POMs are written alongside the originals without modifying them.


Deprecated.
Please use release:prepare-with-pom instead.

No description.


The Java home parameter to use for forked Maven invocations.


Specifies the line separator to format pom.xml. The following properties are available:


The command-line local repository directory in use for this build (if specified).


Role hint of the org.apache.maven.shared.release.exec.MavenExecutor

implementation to use.


The Maven home parameter to use for forked Maven invocations.


The SCM password to use.


Currently only implemented with svn scm. Enable the --pin-externals option in svn copy command which is new in Subversion 1.9.


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.


Goals to run as part of the preparation step, after transformation but before committing. Space delimited.


Comma separated profiles to enable on release prepare, in addition to active profiles for project execution.


The role-hint for the org.apache.maven.shared.release.policy.naming.NamingPolicy

implementation used to calculate the project branch and tag names.
See also: org.apache.maven.shared.release.policies.DefaultNamingPolicy


Optional config for the VersionPolicy implementation used to calculate the project versions.


The role-hint for the org.apache.maven.shared.release.policy.version.VersionPolicy

implementation used to calculate the project versions.
See also: org.apache.maven.shared.release.policies.DefaultVersionPolicy


Add a new or overwrite the default implementation per provider. The key is the scm prefix and the value is the role hint of the org.apache.maven.scm.provider.ScmProvider

.
See also: org.apache.maven.scm.manager.ScmManager.setScmProviderImplementation(java.lang.String,java.lang.String)


Implemented with git will or not push changes to the upstream repository. true by default to preserve backward compatibility.


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 version to use when preparing a release or a branch.


Currently only implemented with svn scm.


Resume a previous release attempt from the point where it was stopped.


The message prefix to use for all SCM changes.


The SCM commit comment when setting pom.xml back to development. Defaults to "@{prefix} prepare for next development iteration".

Property interpolation is performed on the value, but in order to ensure that the interpolation occurs during release, you must use @{...} to reference the properties rather than ${...}. The following properties are available:


The SCM commit comment when setting pom.xml to release. Defaults to "@{prefix} prepare release @{releaseLabel}".

Property interpolation is performed on the value, but in order to ensure that the interpolation occurs during release, you must use @{...} to reference the properties rather than ${...}. The following properties are available:


When cloning a repository if it should be a shallow clone or a full clone.


Signs SCM tag when possible, for example when using the git-exe the '--sign' argument is used.


Whether to suppress a commit of changes to the working copy before the tag is created.

This requires remoteTagging to be set to false.

suppressCommitBeforeTag is useful when you want to avoid poms with released versions in all revisions of your trunk or development branch.


The SCM tag to use.


The tag base directory in SVN, you must define it if you don't use the standard svn layout (trunk/tags/branches). For example, http://svn.apache.org/repos/asf/maven/plugins/tags. The URL is an SVN URL and does not include the SCM provider and protocol.


Format to use when generating the tag name if none is specified. Property interpolation is performed on the tag, but in order to ensure that the interpolation occurs during release, you must use @{...} to reference the properties rather than ${...}. The following properties are available:


Whether to update dependencies version to the next development version.


Whether to bump the working copy versions to developmentVersion.


Whether to use "edit" mode on the SCM, to lock the file for editing during SCM operations.


The SCM username to use.


Wait the specified number of seconds before creating the tag.
waitBeforeTagging is useful when your source repository is synced between several instances and access to it is determined by geographical location, like the SVN repository at the Apache Software Foundation.


A workItem for SCMs like RTC, TFS etc, that may require additional information to perform a pushChange operation.