versions:update-property

Full name:

org.codehaus.mojo:versions-maven-plugin:1.3.1:update-property

Description:

Sets a property to the latest version in a given range of associated artifacts.

Attributes:

  • Requires a Maven project to be executed.
  • Executes by direct invocation only.
  • Since version: 1.3.

Optional Parameters

Name Type Since Description
allowSnapshots Boolean 1.0-alpha-1 Whether to allow snapshots when searching for the latest version of an artifact.
Default value is: false.
autoLinkItems Boolean 1.0-alpha-2 Whether properties linking versions should be auto-detected or not.
generateBackupPoms Boolean 1.0-alpha-3 Controls whether a backup pom should be created (default is true).
newVersion String 1.3 The new version to set the property to (can be a version range to find a version within).
property String 1.3 A property to update.
rulesUri String 1.0-alpha-3 The Wagon URI of a ruleSet file containing the rules that control how to compare version numbers.
serverId String 1.0-alpha-3 settings.xml's server id for the URL. This is used when wagon needs extra authentication information.
Default value is: serverId.

Parameter Details

allowSnapshots:

Whether to allow snapshots when searching for the latest version of an artifact.
  • Type: java.lang.Boolean
  • Since: 1.0-alpha-1
  • Required: No
  • Expression: ${allowSnapshots}
  • Default: false

autoLinkItems:

Whether properties linking versions should be auto-detected or not.
  • Type: java.lang.Boolean
  • Since: 1.0-alpha-2
  • Required: No
  • Expression: ${autoLinkItems}

generateBackupPoms:

Controls whether a backup pom should be created (default is true).
  • Type: java.lang.Boolean
  • Since: 1.0-alpha-3
  • Required: No
  • Expression: ${generateBackupPoms}

newVersion:

The new version to set the property to (can be a version range to find a version within).
  • Type: java.lang.String
  • Since: 1.3
  • Required: No
  • Expression: ${newVersion}

property:

A property to update.
  • Type: java.lang.String
  • Since: 1.3
  • Required: No
  • Expression: ${property}

rulesUri:

The Wagon URI of a ruleSet file containing the rules that control how to compare version numbers.
  • Type: java.lang.String
  • Since: 1.0-alpha-3
  • Required: No
  • Expression: ${maven.version.rules}

serverId:

settings.xml's server id for the URL. This is used when wagon needs extra authentication information.
  • Type: java.lang.String
  • Since: 1.0-alpha-3
  • Required: No
  • Expression: ${maven.version.rules.serverId}
  • Default: serverId