toolbox:lock-plugin-versions

Full name:

eu.maveniverse.maven.plugins:toolbox:0.16.2:lock-plugin-versions

Description:

Locks available versions of Maven Project used plugins.

This mojo intentionally collects plugins from the effective main build of all projects in the reactor (plugins of inactive profiles are not included), and consolidates their locked versions into the root project's <pluginManagement> section. The goal is a single authoritative lock entry per plugin GA regardless of which scope (main build or profile) declared it. For scope-preserving plugin version updates (writing profile-declared updates back into the profile), see PluginVersionsMojo.

Attributes:

  • Requires a Maven project to be executed.
  • Executes as an aggregator goal.
  • The goal is thread-safe and supports parallel builds.

Optional Parameters

Name Type Since Description
<apply> boolean - Apply results to POM.
User Property: apply
<artifactMatcherSpec> String - The plugin matcher spec.
Default: any()
User Property: artifactMatcherSpec
<artifactVersionMatcherSpec> String - Artifact version matcher spec string, default is 'noSnapshotsAndPreviews()'.
Default: noSnapshotsAndPreviews()
User Property: artifactVersionMatcherSpec
<artifactVersionSelectorSpec> String - Artifact version selector spec string to select the version from candidates, default is 'last()'.
Default: last()
User Property: artifactVersionSelectorSpec
<dryRun> boolean - Option to run potentially destructive commands without performing any IO.
Default: false
User Property: dryRun
<extraRepositories> String - Appends extra repositories to context.
User Property: extraRepositories
<failOnLogicalFailure> boolean - Makes command fail on "logical" failure.
Default: true
User Property: failOnLogicalFailure
<forceStdout> boolean - No description.
User Property: forceStdout
<forceUpdates> boolean - Force updates.
User Property: update
<pluginKey> String - The plugin key in the format <groupId>:<artifactId> to display tree for. If plugin is from "known" groupId (as configured in settings.xml) it may be in format of :<artifactId> and this mojo will find it. Finally, if plugin key is plain string like "clean", this mojo will apply some heuristics to find it.
User Property: pluginKey
<repositoryVendor> String - The repository vendor to use for Search RR backend ("central", "nx2" or any other extractor). If empty, heuristics will be applied to figure out.
User Property: toolbox.search.backend.type
<verbosity> Output$Verbosity - No description.
Default: NORMAL
User Property: verbosity

Parameter Details

<apply>

Apply results to POM.
  • Type: boolean
  • Required: No
  • User Property: apply

<artifactMatcherSpec>

The plugin matcher spec.
  • Type: java.lang.String
  • Required: No
  • User Property: artifactMatcherSpec
  • Default: any()

<artifactVersionMatcherSpec>

Artifact version matcher spec string, default is 'noSnapshotsAndPreviews()'.
  • Type: java.lang.String
  • Required: No
  • User Property: artifactVersionMatcherSpec
  • Default: noSnapshotsAndPreviews()

<artifactVersionSelectorSpec>

Artifact version selector spec string to select the version from candidates, default is 'last()'.
  • Type: java.lang.String
  • Required: No
  • User Property: artifactVersionSelectorSpec
  • Default: last()

<dryRun>

Option to run potentially destructive commands without performing any IO.
  • Type: boolean
  • Required: No
  • User Property: dryRun
  • Default: false

<extraRepositories>

Appends extra repositories to context.
  • Type: java.lang.String
  • Required: No
  • User Property: extraRepositories

<failOnLogicalFailure>

Makes command fail on "logical" failure.
  • Type: boolean
  • Required: No
  • User Property: failOnLogicalFailure
  • Default: true

<forceStdout>

No description.
  • Type: boolean
  • Required: No
  • User Property: forceStdout

<forceUpdates>

Force updates.
  • Type: boolean
  • Required: No
  • User Property: update

<pluginKey>

The plugin key in the format <groupId>:<artifactId> to display tree for. If plugin is from "known" groupId (as configured in settings.xml) it may be in format of :<artifactId> and this mojo will find it. Finally, if plugin key is plain string like "clean", this mojo will apply some heuristics to find it.
  • Type: java.lang.String
  • Required: No
  • User Property: pluginKey

<repositoryVendor>

The repository vendor to use for Search RR backend ("central", "nx2" or any other extractor). If empty, heuristics will be applied to figure out.
  • Type: java.lang.String
  • Required: No
  • User Property: toolbox.search.backend.type

<verbosity>

No description.
  • Type: eu.maveniverse.maven.toolbox.shared.output.Output$Verbosity
  • Required: No
  • User Property: verbosity
  • Default: NORMAL