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 Details

    • 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 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 String projectVersionPolicyId
      The 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.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException