versions:set

Full name:

org.codehaus.mojo:versions-maven-plugin:1.3.1:set

Description:

Sets the current projects version, updating the details of any child modules as necessary.

Attributes:

  • Requires a Maven project to be executed.
  • Executes as an aggregator plugin.
  • Executes by direct invocation only.
  • Since version: 1.0-beta-1.

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.
artifactId String 1.2 The artifactId of the dependecy/module to update.
Default value is: ${project.artifactId}.
generateBackupPoms Boolean 1.0-alpha-3 Controls whether a backup pom should be created (default is true).
groupId String 1.2 The groupId of the dependency/module to update.
Default value is: ${project.groupId}.
newVersion String 1.0-beta-1 The new version number to set.
oldVersion String 1.2 The version of the dependency/module to update.
Default value is: ${project.version}.
processDependencies boolean 1.3 Whether to process the dependencies section of the project. If not set will default to true.
Default value is: true.
processParent boolean 1.3 Whether to process the parent of the project. If not set will default to true.
Default value is: true.
processPlugins boolean 1.3 Whether to process the plugins section of the project. If not set will default to true.
Default value is: true.
processProject boolean 1.3 Whether to process the project version. If not set will default to true.
Default value is: true.
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.
updateMatchingVersions Boolean 1.3 Whether matching versions explicitly specified (as /project/version) in child modules should be updated.
Default value is: true.

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

artifactId:

The artifactId of the dependecy/module to update.
  • Type: java.lang.String
  • Since: 1.2
  • Required: No
  • Expression: ${artifactId}
  • Default: ${project.artifactId}

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}

groupId:

The groupId of the dependency/module to update.
  • Type: java.lang.String
  • Since: 1.2
  • Required: No
  • Expression: ${groupId}
  • Default: ${project.groupId}

newVersion:

The new version number to set.
  • Type: java.lang.String
  • Since: 1.0-beta-1
  • Required: No
  • Expression: ${newVersion}

oldVersion:

The version of the dependency/module to update.
  • Type: java.lang.String
  • Since: 1.2
  • Required: No
  • Expression: ${oldVersion}
  • Default: ${project.version}

processDependencies:

Whether to process the dependencies section of the project. If not set will default to true.
  • Type: boolean
  • Since: 1.3
  • Required: No
  • Expression: ${processDependencies}
  • Default: true

processParent:

Whether to process the parent of the project. If not set will default to true.
  • Type: boolean
  • Since: 1.3
  • Required: No
  • Expression: ${processParent}
  • Default: true

processPlugins:

Whether to process the plugins section of the project. If not set will default to true.
  • Type: boolean
  • Since: 1.3
  • Required: No
  • Expression: ${processPlugins}
  • Default: true

processProject:

Whether to process the project version. If not set will default to true.
  • Type: boolean
  • Since: 1.3
  • Required: No
  • Expression: ${processProject}
  • Default: true

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

updateMatchingVersions:

Whether matching versions explicitly specified (as /project/version) in child modules should be updated.
  • Type: java.lang.Boolean
  • Since: 1.3
  • Required: No
  • Expression: ${updateMatchingVersions}
  • Default: true