Skip to content

display-plugin-updates falsely reports inherited plugin versions as unspecified when <inherited> is omitted #1488

Closed

Description

@hkoosha

Plugin version

versions-maven-plugin:2.24.0

JDK and Maven version

Maven: 3.10.0 ; JDK: Eclipse Temurin 27+35 ; Linux 7.3.3

What did you expect to happen?

Not to see a warning about a missing plugin version, when the version is already specified in parent's plugin management section.

What happened instead?

A warning was issued about missing version of inherited plugin.

How can we reproduce it?

Reproducible in a 1 parent & 1 child maven setup, ~90 lines of config + a shell runner

  • In parent, specify a plugin's version. I took spotless as an example.
  • In child, do not specify its version but do mention the plugin and try to configure it further.
  • Then running ./mvnw versions:display-plugin-updates shows a warning about missing version in the child maven module.

bug.tar.gz

Workaround

Explicitly mention <inherited>true</inherited> in the parent's pom for the unhappy plugin.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions