versions:use-latest-snapshots

Full name:

org.codehaus.mojo:versions-maven-plugin:2.25.3:use-latest-snapshots

Description:

Replaces any release versions with the latest snapshot version (if it has been deployed).

Attributes:

  • Requires a Maven project to be executed.
  • The goal is thread-safe and supports parallel builds.
  • Since version: 1.0-beta-1.

Optional Parameters

Name Type Since Description
<allowIncrementalUpdates> boolean 1.0-beta-1 Whether to allow the incremental version number to be changed.

Note: false also implies allowMajorUpdates and allowMinorUpdates false


Default: true
User Property: allowIncrementalUpdates
<allowMajorUpdates> boolean 1.0-beta-1 Whether to allow the major version number to be changed.
Default: false
User Property: allowMajorUpdates
<allowMinorUpdates> boolean 1.0-beta-1 Whether to allow the minor version number to be changed.

Note: false also implies allowMajorUpdates false


Default: false
User Property: allowMinorUpdates
<allowPreReleases> boolean 2.25.0 (2.20.0 for <code>use-latest-versions</code>) Whether to offer pre-release versions: alpha, beta, milestone, release candidate, preview and early-access versions, such as 4.0.0-beta-4 or 3.34.0.CR1. When false, a pre-release is still offered if the current version is itself a pre-release or a snapshot of the same release line, so 4.0.0-beta-3 is offered 4.0.0-beta-4 but not 4.1.0-M1. Snapshots are governed by allowSnapshots, and ignoredVersions and rules still apply on top.
Default: false
User Property: allowPreReleases
<changeRecorderFormat> String 2.11 The format used to record changes. If "none" is specified, no changes are recorded.
Default: none
User Property: changeRecorderFormat
<changeRecorderOutputFile> File 2.11 The output file used to record changes.
Default: ${project.build.directory}/versions-changes.xml
User Property: changeRecorderOutputFile
<dependabotConfig> String 2.25.0

A Dependabot configuration file whose ignore entries are applied as version rules, on top of ruleSet, rulesUri and ignoredVersions.

Only the package-ecosystem: maven entries for dependabotTargetBranch are read. Each versions item may be a Maven version range, a comparator requirement such as ">= 5.0.0", or a single version. Items that only use update-types are skipped with a warning. A relative path is resolved against the multi-module project directory.

Example: -Dversions.dependabotConfig=.github/dependabot.yml


User Property: versions.dependabotConfig
<dependabotTargetBranch> String 2.25.0

The target-branch whose entries in dependabotConfig apply. Defaults to the branch checked out in the git working tree holding that file; the entries without a target-branch are used when no entry names the branch.


User Property: versions.dependabotTargetBranch
<excludeReactor> boolean 1.0-alpha-3 Whether to skip processing dependencies that are produced as part of the current reactor.
Default: true
User Property: excludeReactor
<excludes> String[] 1.0-beta-1 A list of artifact patterns to exclude. Follows the pattern "groupId:artifactId:type:classifier:version". This configuration setting is ignored if excludesList is defined.
<excludesList> String 1.0-beta-1 A comma separated list of artifact patterns to exclude. Follows the pattern "groupId:artifactId:type:classifier:version". Designed to allow specifying the set of excludes from the command line. When specifying excludes from the pom, use the excludes configuration instead. If this property is specified then the excludes configuration is ignored.
User Property: excludes
<generateBackupPoms> boolean 1.0-alpha-3 Controls whether a backup pom should be created.
Default: true
User Property: generateBackupPoms
<ignoredVersions> Set<String> 2.13.0

Allows specifying ignored versions directly as an alternative to providing the ruleSet parameter; mainly created for -D property usage.

Example: "1\.0\.1,.+-M.,.*-SNAPSHOT"

Currently, this parameter will override the defined ruleSet


User Property: maven.version.ignore
<includes> String[] 1.0-beta-1 A list of artifact patterns to include. Follows the pattern "groupId:artifactId:type:classifier:version". This configuration setting is ignored if includesList is defined.
<includesList> String 1.0-beta-1 A comma separated list of artifact patterns to include. Follows the pattern "groupId:artifactId:type:classifier:version". Designed to allow specifying the set of includes from the command line. When specifying includes from the pom, use the includes configuration instead. If this property is specified then the includes configuration is ignored.
User Property: includes
<minimumReleaseAge> int 2.25.0 Minimum number of days a release must have been published before it is offered as an update. This keeps a very recent release, which may be faulty or compromised, out of the update candidates; Renovate calls the same idea minimumReleaseAge, and Dependabot calls it cooldown.
A version older than or equal to the current one is not affected. The publication date is read through Maven's own transport, so the proxy, mirror and server settings apply. If the date cannot be determined, the version is offered and a warning says so. 0, the default, switches the filter off.
Default: 0
User Property: versions.minimumReleaseAge
<minimumReleaseAgeExcludes> String[] 2.25.0 groupId:artifactId patterns of the artifacts that are exempt from minimumReleaseAge, for artifacts whose sources you trust. * matches any run of characters, and an artifactId may be left out to match the whole group, for example com.example:* or com.example.
On the command line, separate the patterns with commas.
User Property: versions.minimumReleaseAgeExcludes
<numThreads> int 2.19.0 Number of executor threads for update retrieval.
Default: 5
User Property: numThreads
<processDependencies> boolean 1.0-alpha-3 Whether to process the dependencies section of the project.
Default: true
User Property: processDependencies
<processDependencyManagement> boolean 1.0-alpha-3 Whether to process the dependencyManagement section of the project.
Default: true
User Property: processDependencyManagement
<processParent> boolean 2.3 Whether to process the parent section of the project. If not set will default to false.
Default: false
User Property: processParent
<processPlugins> boolean 2.25.0 Whether to update the versions of plugins declared in the build, plugin management and reporting sections, including those of profiles. Only plugins with a version of their own in this pom are updated; a version held in a property is left to update-properties. A plugin version that requires a newer Maven than the project's minimum, taken from the Enforcer requireMavenVersion rule or prerequisites, is skipped; without either, the limit is the oldest Maven this goal runs on.
Default: false
User Property: processPlugins
<ruleSet> RuleSet 2.13.0

Allows specifying the org.codehaus.mojo.versions.model.RuleSet object describing rules on artifact versions to ignore when considering updates.


See also: Using the ruleSet element in the POM
<rulesUri> String 1.0-alpha-3 URI of a ruleSet file containing the rules that control how to compare version numbers. The URI could be either a URI served by a Maven Resolver transport (e.g. file: or https:) or a classpath URI (e.g. classpath:///package/sub/package/rules.xml).
User Property: maven.version.rules
<scope> String 2.15 a scope to use to filter the artifacts matching the asked scope (as well as the ones implied by maven)
User Property: scope
<serverId> String 1.0-alpha-3 settings.xml's server id for the URL. This is used when the server hosting the rules needs authentication.
Default: serverId
User Property: maven.version.rules.serverId
<skip> boolean 2.21.0 If true, the plugin execution will be skipped.
Default: false
User Property: versions.skip

Parameter Details

<allowIncrementalUpdates>

Whether to allow the incremental version number to be changed.

Note: false also implies allowMajorUpdates and allowMinorUpdates false

  • Type: boolean
  • Since: 1.0-beta-1
  • Required: No
  • User Property: allowIncrementalUpdates
  • Default: true

<allowMajorUpdates>

Whether to allow the major version number to be changed.
  • Type: boolean
  • Since: 1.0-beta-1
  • Required: No
  • User Property: allowMajorUpdates
  • Default: false

<allowMinorUpdates>

Whether to allow the minor version number to be changed.

Note: false also implies allowMajorUpdates false

  • Type: boolean
  • Since: 1.0-beta-1
  • Required: No
  • User Property: allowMinorUpdates
  • Default: false

<allowPreReleases>

Whether to offer pre-release versions: alpha, beta, milestone, release candidate, preview and early-access versions, such as 4.0.0-beta-4 or 3.34.0.CR1. When false, a pre-release is still offered if the current version is itself a pre-release or a snapshot of the same release line, so 4.0.0-beta-3 is offered 4.0.0-beta-4 but not 4.1.0-M1. Snapshots are governed by allowSnapshots, and ignoredVersions and rules still apply on top.
  • Type: boolean
  • Since: 2.25.0 (2.20.0 for <code>use-latest-versions</code>)
  • Required: No
  • User Property: allowPreReleases
  • Default: false

<changeRecorderFormat>

The format used to record changes. If "none" is specified, no changes are recorded.
  • Type: java.lang.String
  • Since: 2.11
  • Required: No
  • User Property: changeRecorderFormat
  • Default: none

<changeRecorderOutputFile>

The output file used to record changes.
  • Type: java.io.File
  • Since: 2.11
  • Required: No
  • User Property: changeRecorderOutputFile
  • Default: ${project.build.directory}/versions-changes.xml

<dependabotConfig>

A Dependabot configuration file whose ignore entries are applied as version rules, on top of ruleSet, rulesUri and ignoredVersions.

Only the package-ecosystem: maven entries for dependabotTargetBranch are read. Each versions item may be a Maven version range, a comparator requirement such as ">= 5.0.0", or a single version. Items that only use update-types are skipped with a warning. A relative path is resolved against the multi-module project directory.

Example: -Dversions.dependabotConfig=.github/dependabot.yml

  • Type: java.lang.String
  • Since: 2.25.0
  • Required: No
  • User Property: versions.dependabotConfig

<dependabotTargetBranch>

The target-branch whose entries in dependabotConfig apply. Defaults to the branch checked out in the git working tree holding that file; the entries without a target-branch are used when no entry names the branch.

  • Type: java.lang.String
  • Since: 2.25.0
  • Required: No
  • User Property: versions.dependabotTargetBranch

<excludeReactor>

Whether to skip processing dependencies that are produced as part of the current reactor.
  • Type: boolean
  • Since: 1.0-alpha-3
  • Required: No
  • User Property: excludeReactor
  • Default: true

<excludes>

A list of artifact patterns to exclude. Follows the pattern "groupId:artifactId:type:classifier:version". This configuration setting is ignored if excludesList is defined.
  • Type: java.lang.String[]
  • Since: 1.0-beta-1
  • Required: No

<excludesList>

A comma separated list of artifact patterns to exclude. Follows the pattern "groupId:artifactId:type:classifier:version". Designed to allow specifying the set of excludes from the command line. When specifying excludes from the pom, use the excludes configuration instead. If this property is specified then the excludes configuration is ignored.
  • Type: java.lang.String
  • Since: 1.0-beta-1
  • Required: No
  • User Property: excludes

<generateBackupPoms>

Controls whether a backup pom should be created.
  • Type: boolean
  • Since: 1.0-alpha-3
  • Required: No
  • User Property: generateBackupPoms
  • Default: true

<ignoredVersions>

Allows specifying ignored versions directly as an alternative to providing the ruleSet parameter; mainly created for -D property usage.

Example: "1\.0\.1,.+-M.,.*-SNAPSHOT"

Currently, this parameter will override the defined ruleSet

  • Type: java.util.Set<java.lang.String>
  • Since: 2.13.0
  • Required: No
  • User Property: maven.version.ignore

<includes>

A list of artifact patterns to include. Follows the pattern "groupId:artifactId:type:classifier:version". This configuration setting is ignored if includesList is defined.
  • Type: java.lang.String[]
  • Since: 1.0-beta-1
  • Required: No

<includesList>

A comma separated list of artifact patterns to include. Follows the pattern "groupId:artifactId:type:classifier:version". Designed to allow specifying the set of includes from the command line. When specifying includes from the pom, use the includes configuration instead. If this property is specified then the includes configuration is ignored.
  • Type: java.lang.String
  • Since: 1.0-beta-1
  • Required: No
  • User Property: includes

<minimumReleaseAge>

Minimum number of days a release must have been published before it is offered as an update. This keeps a very recent release, which may be faulty or compromised, out of the update candidates; Renovate calls the same idea minimumReleaseAge, and Dependabot calls it cooldown.
A version older than or equal to the current one is not affected. The publication date is read through Maven's own transport, so the proxy, mirror and server settings apply. If the date cannot be determined, the version is offered and a warning says so. 0, the default, switches the filter off.
  • Type: int
  • Since: 2.25.0
  • Required: No
  • User Property: versions.minimumReleaseAge
  • Default: 0

<minimumReleaseAgeExcludes>

groupId:artifactId patterns of the artifacts that are exempt from minimumReleaseAge, for artifacts whose sources you trust. * matches any run of characters, and an artifactId may be left out to match the whole group, for example com.example:* or com.example.
On the command line, separate the patterns with commas.
  • Type: java.lang.String[]
  • Since: 2.25.0
  • Required: No
  • User Property: versions.minimumReleaseAgeExcludes

<numThreads>

Number of executor threads for update retrieval.
  • Type: int
  • Since: 2.19.0
  • Required: No
  • User Property: numThreads
  • Default: 5

<processDependencies>

Whether to process the dependencies section of the project.
  • Type: boolean
  • Since: 1.0-alpha-3
  • Required: No
  • User Property: processDependencies
  • Default: true

<processDependencyManagement>

Whether to process the dependencyManagement section of the project.
  • Type: boolean
  • Since: 1.0-alpha-3
  • Required: No
  • User Property: processDependencyManagement
  • Default: true

<processParent>

Whether to process the parent section of the project. If not set will default to false.
  • Type: boolean
  • Since: 2.3
  • Required: No
  • User Property: processParent
  • Default: false

<processPlugins>

Whether to update the versions of plugins declared in the build, plugin management and reporting sections, including those of profiles. Only plugins with a version of their own in this pom are updated; a version held in a property is left to update-properties. A plugin version that requires a newer Maven than the project's minimum, taken from the Enforcer requireMavenVersion rule or prerequisites, is skipped; without either, the limit is the oldest Maven this goal runs on.
  • Type: boolean
  • Since: 2.25.0
  • Required: No
  • User Property: processPlugins
  • Default: false

<ruleSet>

Allows specifying the org.codehaus.mojo.versions.model.RuleSet object describing rules on artifact versions to ignore when considering updates.


See also: Using the ruleSet element in the POM
  • Type: org.codehaus.mojo.versions.model.RuleSet
  • Since: 2.13.0
  • Required: No

<rulesUri>

URI of a ruleSet file containing the rules that control how to compare version numbers. The URI could be either a URI served by a Maven Resolver transport (e.g. file: or https:) or a classpath URI (e.g. classpath:///package/sub/package/rules.xml).
  • Type: java.lang.String
  • Since: 1.0-alpha-3
  • Required: No
  • User Property: maven.version.rules

<scope>

a scope to use to filter the artifacts matching the asked scope (as well as the ones implied by maven)
  • Type: java.lang.String
  • Since: 2.15
  • Required: No
  • User Property: scope

<serverId>

settings.xml's server id for the URL. This is used when the server hosting the rules needs authentication.
  • Type: java.lang.String
  • Since: 1.0-alpha-3
  • Required: No
  • User Property: maven.version.rules.serverId
  • Default: serverId

<skip>

If true, the plugin execution will be skipped.
  • Type: boolean
  • Since: 2.21.0
  • Required: No
  • User Property: versions.skip
  • Default: false