Skip to content

Conversation

@cstamas
Copy link
Member

@cstamas cstamas commented Aug 28, 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

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
@cstamas cstamas added this to the 4.0.0 milestone Aug 28, 2025
@cstamas cstamas requested a review from gnodet August 28, 2025 15:15
@cstamas cstamas self-assigned this Aug 28, 2025
@cstamas cstamas added enhancement New feature or request performance labels Aug 28, 2025
@cstamas cstamas marked this pull request as ready for review August 28, 2025 15:51
@cstamas cstamas merged commit b2f86c2 into apache:maven-4.0.x Aug 28, 2025
18 of 19 checks passed
@cstamas cstamas deleted the prefix-resolve-backport branch August 28, 2025 15:56
@slawekjaranowski slawekjaranowski linked an issue Sep 30, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Different and unexpected behavour on invoking goals

2 participants