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