Skip to content

[MENFORCER-518] RequirePluginVersions fails for plugins in profiles when using properties #870

Done

Description

@jira-importer

Juan Farré opened MENFORCER-518 and commented

I defined a plugin inside a profile, using a property for the artifactId.

See [^pom.xml]

I got the following error:

!error3.9.9.PNG!

This was with Maven 3.9.9 and it also fails with Maven 4.0.0-rc-2:

!error4.0.0.PNG!

The problem was reproduced with versions 3.0.0 and 3.5.0 of the plugin.

With version 1.4.1 it also fails, even though it reports the correct version:

!error1.4.1.PNG!

It's also worth mentioning that there doesn't seem to be any problem when you specify the version using a property, only when you specify the artifactId with a property.

 


Affects: 1.4.1, 3.0.0, 3.5.0

Attachments:

Activity

  1. added
    bug
    priority:major
    on Jun 14, 2025
  2. arturobernalg commented on Nov 17, 2026

    @arturobernalg
    Member

    Opened a PR for this: #1087

  3. added a commit that references this issue on Nov 28, 2026
    9466258
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:major

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions