public class PrepareReleaseMojo extends AbstractReleaseMojo
Modifier and Type | Field and Description |
---|---|
private boolean |
addSchema
Whether to add a schema to the POM if it was previously missing on release.
|
private boolean |
allowReleasePluginSnapshot
Whether to allow usage of a SNAPSHOT version of the Release Plugin.
|
private boolean |
allowTimestampedSnapshots
Whether to allow timestamped SNAPSHOT dependencies.
|
private boolean |
autoVersionSubmodules
Whether to automatically assign submodules the parent version.
|
private java.lang.String |
checkModificationExcludeList
Command-line version of checkModificationExcludes
|
private java.lang.String[] |
checkModificationExcludes
Additional files that will skipped when checking for
modifications on the working copy.
|
private boolean |
commitByProject
Commits to do are atomic or by project.
|
private java.lang.String |
completionGoals
Goals to run on completion of the preparation step, after transformation back to the next development version
but before committing.
|
private java.lang.String |
developmentVersion
Default version to use for new local working copy.
|
private boolean |
dryRun
Dry run: don't checkin or tag anything in the scm repository, or modify the checkout.
|
private boolean |
generateReleasePoms
Deprecated.
Please use release:prepare-with-pom instead.
|
private java.lang.String |
preparationGoals
Goals to run as part of the preparation step, after transformation but before committing.
|
private java.lang.String |
releaseVersion
Default version to use when preparing a release or a branch.
|
private boolean |
remoteTagging
Currently only implemented with svn scm.
|
private boolean |
resume
Resume a previous release attempt from the point where it was stopped.
|
protected org.apache.maven.execution.MavenSession |
session |
private boolean |
suppressCommitBeforeTag
Whether to suppress a commit of changes to the working copy
before the tag is created.
|
private boolean |
updateDependencies
Whether to update dependencies version to the next development version.
|
private boolean |
updateWorkingCopyVersions
Whether to bump the working copy versions to
developmentVersion . |
private boolean |
useEditMode
Whether to use "edit" mode on the SCM, to lock the file for editing during SCM operations.
|
private int |
waitBeforeTagging
Wait the specified number of second before creating the tag.
|
basedir, javaHome, localRepoDirectory, mavenExecutorId, mavenHome, project, reactorProjects, releaseManager, settings
Constructor and Description |
---|
PrepareReleaseMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected void |
prepareRelease(boolean generateReleasePoms) |
addArgument, createReleaseDescriptor, getAdditionalProfiles, getReactorProjects, getReleaseEnvironment, getSettings, mergeCommandLineConfig, setBasedir, setReleaseManager
private boolean resume
private boolean generateReleasePoms
private boolean useEditMode
private boolean updateDependencies
private boolean autoVersionSubmodules
private boolean dryRun
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.private boolean addSchema
private java.lang.String preparationGoals
private java.lang.String completionGoals
private boolean commitByProject
private boolean allowTimestampedSnapshots
private boolean allowReleasePluginSnapshot
private java.lang.String[] checkModificationExcludes
private java.lang.String checkModificationExcludeList
private java.lang.String releaseVersion
private java.lang.String developmentVersion
private boolean remoteTagging
suppressCommitBeforeTag
, such that no poms with
released versions are committed to the working
copy ever.private boolean updateWorkingCopyVersions
developmentVersion
.private boolean suppressCommitBeforeTag
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.private int waitBeforeTagging
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.protected org.apache.maven.execution.MavenSession session
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
execute
in interface org.apache.maven.plugin.Mojo
execute
in class AbstractReleaseMojo
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void prepareRelease(boolean generateReleasePoms) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException