public class BranchReleaseMojo 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 |
autoVersionSubmodules
Whether to automatically assign submodules the parent version.
|
private java.lang.String |
branchBase
The branch base directory in SVN, you must define it if you don't use the standard svn layout (trunk/tags/branches).
|
private java.lang.String |
branchName
The branch name to use.
|
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 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 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 |
suppressCommitBeforeBranch
Whether to suppress a commit of changes to the working copy
before the tag is created.
|
private boolean |
updateBranchVersions
Whether to update versions in the branch.
|
private boolean |
updateDependencies
Whether to update dependencies version to the next development version.
|
private boolean |
updateVersionsToSnapshot
Whether to update versions to SNAPSHOT in the branch.
|
private boolean |
updateWorkingCopyVersions
Whether to update versions in the working copy.
|
private boolean |
useEditMode
Whether to use "edit" mode on the SCM, to lock the file for editing during SCM operations.
|
basedir, javaHome, localRepoDirectory, mavenExecutorId, mavenHome, project, reactorProjects, releaseManager, session, settings
Constructor and Description |
---|
BranchReleaseMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
addArgument, createReleaseDescriptor, getAdditionalProfiles, getReactorProjects, getReleaseEnvironment, getSettings, mergeCommandLineConfig, setBasedir, setReleaseManager
private java.lang.String branchName
private java.lang.String branchBase
http://svn.apache.org/repos/asf/maven/plugins/branches
. The URL is an SVN URL and does not
include the SCM provider and protocol.private boolean updateBranchVersions
private boolean updateWorkingCopyVersions
private boolean suppressCommitBeforeBranch
remoteTagging
to be set to false.
suppressCommitBeforeBranch
is useful when you want
to avoid poms with released versions in all revisions of your
trunk or development branch.private boolean updateVersionsToSnapshot
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 boolean remoteTagging
private java.lang.String[] checkModificationExcludes
private java.lang.String checkModificationExcludeList
private java.lang.String releaseVersion
private java.lang.String developmentVersion
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