Juan Farré created MENFORCER-518: ------------------------------------ Summary: RequirePluginVersions fails for plugins in profiles when using properties Key: MENFORCER-518 URL: https://issues.apache.org/jira/browse/MENFORCER-518 Project: Maven Enforcer Plugin Issue Type: Bug Components: requirePluginVersions Affects Versions: 3.5.0, 3.0.0, 1.4.1 Environment: Windows 10, Eclipse Adoptium 21.0.6, git bash. Reporter: Juan Farré Attachments: error1.4.1.PNG, error3.9.9.PNG, error4.0.0.PNG, pom.xml
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. -- This message was sent by Atlassian Jira (v8.20.10#820010)