Package org.apache.maven.plugins.release
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
Fields Modifier and Type Field 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
developmentVersion
Default version to use for new local working copy.private java.lang.String
projectVersionPolicyId
The role-hint for the VersionPolicy implementation used to calculate the project versions.private boolean
updateDependencies
Whether to update dependencies version to the next development version.private boolean
useEditMode
Whether to use "edit" mode on the SCM, to lock the file for editing during SCM operations.-
Fields inherited from class org.apache.maven.plugins.release.AbstractReleaseMojo
project, releaseManager, session
-
-
Constructor Summary
Constructors Constructor Description UpdateVersionsMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
-
Methods inherited from class org.apache.maven.plugins.release.AbstractReleaseMojo
addArgument, createReleaseDescriptor, getAdditionalProfiles, getBasedir, getCommonBasedir, getReactorProjects, getReleaseEnvironment, getSettings, setBasedir, setPomFileName, setReleaseManager
-
-
-
-
Field Detail
-
autoVersionSubmodules
@Parameter(defaultValue="false", property="autoVersionSubmodules") private boolean autoVersionSubmodules
Whether 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 addSchema
Whether to add a schema to the POM if it was previously missing on release.- Since:
- 2.0
-
developmentVersion
@Parameter(property="developmentVersion") private java.lang.String developmentVersion
Default version to use for new local working copy.- Since:
- 2.0
-
updateDependencies
@Parameter(defaultValue="true", property="updateDependencies") private boolean updateDependencies
Whether to update dependencies version to the next development version.- Since:
- 2.5.2
-
useEditMode
@Parameter(defaultValue="false", property="useEditMode") private boolean useEditMode
Whether 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 java.lang.String projectVersionPolicyId
The role-hint for the VersionPolicy implementation used to calculate the project versions.- Since:
- 3.0.0
-
-