Skip to content

Different and unexpected behavour on invoking goals #11067

@cstamas

Description

@cstamas

Affected version

3.9.11 (probably all)

Bug description

Spotted this when using wrapper:wrapper, as Maven downloads ALL plugins (!), only to then execute wrapper plugin.
Cases:

  • mvn wrapper:wrapper -- this will download all plugins it finds in POM only to execute wrapper
  • mvn org.apache.maven.plugins:maven-wrapper-plugin:wrapper -- this works as expected

In first case, the problem is DefaultLifecycleTaskSegmentCalculator calling LifecyclePluginResolver that in turn calls DefaultPluginVersionResolver and is getting plugin descriptors to detect compatibility for ALL plugins, only to then execute wrapper plugin.

This was already reported as #10128

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions