You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Pavel Horal (Jira)" <ji...@apache.org> on 2022/12/23 14:48:00 UTC
[jira] [Commented] (MENFORCER-447) Verify working with Maven 4
[ https://issues.apache.org/jira/browse/MENFORCER-447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17651671#comment-17651671 ]
Pavel Horal commented on MENFORCER-447:
---------------------------------------
The rule {{requirePluginVersions}} is not able to pick up versions specified in the parent POM. The issue is demonstrated in my test repository https://github.com/pavelhoral/enforcer-plugin-test .
I have tried to find the issue and so far got to this call that incorrectly returns empty optional - [PluginWrapper.java#L75|https://github.com/apache/maven-enforcer/blob/374d7d6a98fb9a33e5740936d612eadfce9cbb66/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/utils/PluginWrapper.java#L75] (called from here [RequirePluginVersions.java#L881|https://github.com/apache/maven-enforcer/blob/374d7d6a98fb9a33e5740936d612eadfce9cbb66/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequirePluginVersions.java#L881]). By the way the JavaDoc of that method is not correct as empty optional is not the same as null result.
> Verify working with Maven 4
> ---------------------------
>
> Key: MENFORCER-447
> URL: https://issues.apache.org/jira/browse/MENFORCER-447
> Project: Maven Enforcer Plugin
> Issue Type: Task
> Reporter: Slawomir Jaranowski
> Assignee: Slawomir Jaranowski
> Priority: Major
> Fix For: 3.2.0
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)