Skip to content

Conversation

slawekjaranowski
Copy link
Member

@slawekjaranowski slawekjaranowski commented Oct 1, 2025

Simplify prefix resolution and drop use of BuildPluginManager (as descriptor will be re-resolved again later) and focus only on prefix to GA resolution, using a map of rules:

  • collect POM enlisted plugin groupId:artifactId pairs that come from non-settings-enlisted groupIDs (and allow only enlisted artifactIDs)
  • add settings enlisted plugin groupIds (keep their order) but "allow any" artifactId

Using this map, figure out plugin GA from prefix using Maven metadata only.

Fixes #11067

Backport of 2b7bb9c

ITs fix:

@slawekjaranowski slawekjaranowski added mvn3 enhancement New feature or request labels Oct 1, 2025
Simplify prefix resolution and drop use of BuildPluginManager (as descriptor will be re-resolved again later) and focus only on prefix to GA resolution, using a map of rules:
* collect POM enlisted plugin groupId:artifactId pairs that come from non-settings-enlisted groupIDs (and allow only enlisted artifactIDs)
* add settings enlisted plugin groupIds (keep their order) but "allow any" artifactId

Using this map, figure out plugin GA from prefix using Maven metadata only.

Fixes apache#11067

Backport of 2b7bb9c
@slawekjaranowski slawekjaranowski self-assigned this Oct 1, 2025
@slawekjaranowski slawekjaranowski linked an issue Oct 1, 2025 that may be closed by this pull request
@slawekjaranowski slawekjaranowski merged commit a6d33f4 into apache:maven-3.9.x Oct 4, 2025
18 checks passed
@github-actions github-actions bot added this to the 3.9.12 milestone Oct 4, 2025
@slawekjaranowski slawekjaranowski deleted the prefix-resolve-3.9.x branch October 11, 2025 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request mvn3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Different and unexpected behavour on invoking goals

2 participants