Class UpdateVersionsMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.release.AbstractReleaseMojo
org.apache.maven.plugins.release.UpdateVersionsMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="update-versions",
aggregator=true)
public class UpdateVersionsMojo
extends AbstractReleaseMojo
Update the POM versions for a project. This performs the normal version updates of the release:prepare goal
without making other modifications to the SCM such as tagging. For more info see https://maven.apache.org/plugins/maven-release-plugin/examples/update-versions.html.
- Since:
- 2.0
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether to add a schema to the POM if it was previously missing on release.private booleanWhether to automatically assign submodules the parent version.private StringDefault version to use for new local working copy.private StringThe role-hint for the VersionPolicy implementation used to calculate the project versions.private booleanWhether to update dependencies version to the next development version.private booleanWhether to use "edit" mode on the SCM, to lock the file for editing during SCM operations.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, getAdditionalProfiles, getBasedir, getCommonBasedir, getReactorProjects, getReleaseEnvironment, getSettings, setBasedir, setPomFileName, setReleaseManagerMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
autoVersionSubmodules
@Parameter(defaultValue="false", property="autoVersionSubmodules") private boolean autoVersionSubmodulesWhether to automatically assign submodules the parent version. If set to false, the user will be prompted for the version of each submodules.- Since:
- 2.0
-
addSchema
@Parameter(defaultValue="true", property="addSchema") private boolean addSchemaWhether to add a schema to the POM if it was previously missing on release.- Since:
- 2.0
-
developmentVersion
Default version to use for new local working copy.- Since:
- 2.0
-
updateDependencies
@Parameter(defaultValue="true", property="updateDependencies") private boolean updateDependenciesWhether to update dependencies version to the next development version.- Since:
- 2.5.2
-
useEditMode
@Parameter(defaultValue="false", property="useEditMode") private boolean useEditModeWhether to use "edit" mode on the SCM, to lock the file for editing during SCM operations.- Since:
- 2.5.2
-
projectVersionPolicyId
@Parameter(defaultValue="default", property="projectVersionPolicyId") private String projectVersionPolicyIdThe role-hint for the VersionPolicy implementation used to calculate the project versions.- Since:
- 3.0.0
-
-
Constructor Details
-
UpdateVersionsMojo
public UpdateVersionsMojo()
-
-
Method Details
-
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
-