Skip to content

versions-maven-plugin:display-plugin-updates shows incorrect unspecified versions #1238

@pdeneve

Description

@pdeneve

As requested in apache/maven-xinclude-extension#18, I'm creating the issue in the versions-maven-plugin repo.

When working with pluginManagement to set versions for plugins, the versions-maven-plugin:display-plugin-updates goal will show warnings that versions of plugins are not specified, even though they are specified in pluginManagement.

To reproduce:

git clone https://gitlab.com/philippedn/jptb.git
cd jptb
./mvnw versions:display-plugin-updates

This will output:

...
[INFO] --- versions:2.18.0:display-plugin-updates (default-cli) @ jptb ---
[INFO]
[INFO] All plugins with a version specified are using the latest versions.
[INFO]
[WARNING] The following plugins do not have their version specified:
[WARNING]   maven-clean-plugin ...................... (from super-pom) 3.4.0
[WARNING]   maven-compiler-plugin .................. (from super-pom) 3.13.0
[WARNING]   maven-dependency-plugin ................. (from super-pom) 3.8.1
[WARNING]   maven-deploy-plugin ..................... (from super-pom) 3.1.3
[WARNING]   maven-enforcer-plugin ................... (from super-pom) 3.5.0
[WARNING]   maven-install-plugin .................... (from super-pom) 3.1.3
[WARNING]   maven-jar-plugin ........................ (from super-pom) 3.4.2
[WARNING]   maven-resources-plugin .................. (from super-pom) 3.3.1
[WARNING]   maven-surefire-plugin ................... (from super-pom) 3.5.2
[WARNING]   org.codehaus.mojo:exec-maven-plugin ..... (from super-pom) 3.5.0
[WARNING]   org.codehaus.mojo:versions-maven-plugin  (from super-pom) 2.18.0
[INFO]
[INFO] Project requires minimum Maven version for build of: 3.6.3
[INFO] Plugins require minimum Maven version of: 3.6.3
[INFO] Note: the super-pom from Maven 4.0.0-rc-2 defines some of the plugin
[INFO]       versions and may be influencing the plugins required minimum Maven
[INFO]       version.
[INFO]
[INFO] No plugins require a newer version of Maven than specified by the pom.
...

The warnings are for versions that are all set in pluginManagement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions