Skip to content

mvnup: PluginUpgradeStrategy should upgrade toolchains-plugin when adding select-jdk-toolchain execution #12985

Closed

Description

@gnodet

Problem

mvnup adds a select-jdk-toolchain execution to the maven-toolchains-plugin, but does not upgrade the plugin version. When the project uses toolchains-plugin 1.1 (which only has help and toolchain goals), the build fails:

[ERROR] Could not find goal 'select-jdk-toolchain' in plugin
  org.apache.maven.plugins:maven-toolchains-plugin:1.1
  among available goals help, toolchain -> [Help 1]

The select-jdk-toolchain goal was introduced in toolchains-plugin 3.2.0.

Affected project

  • sirona — uses toolchains-plugin 1.1 (inherited from parent POM)

Expected behavior

When mvnup adds a select-jdk-toolchain execution, it should also ensure the toolchains-plugin version is >= 3.2.0 (either by adding a <version> element or a pluginManagement entry).

Context

Data from maven4-testing run #13307 testing maven-4.0.x against all Apache projects.

Activity

  1. added this to the 4.0.0-rc-7 milestone on Sep 1, 2026
  2. added 3 commits that reference this issue on Sep 2, 2026
    669a35b
    c1d0138
    b7c66e5
  3. added a commit that references this issue on Sep 2, 2026
    db58959
  4. added a commit that references this issue on Sep 2, 2026
    635e637
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions