You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamas Cservenak (Jira)" <ji...@apache.org> on 2023/03/21 10:29:00 UTC
[jira] [Comment Edited] (MNG-7717) Maven warns wrongly about ${localRepository} expression
[ https://issues.apache.org/jira/browse/MNG-7717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17703134#comment-17703134 ]
Tamas Cservenak edited comment on MNG-7717 at 3/21/23 10:28 AM:
----------------------------------------------------------------
This is fixed but not in a way you think: there was a problem how deprecated expression was identified.
OTOH, this warning is not about your POM, but about Mojos/Plugins used in your POM: and in this case surefire 2.22.2 (Maven2 compatibie!) does suffer from this issue, it does use deprecated expression. Upgrade to 3.0.0 surefire and warning is gone.
was (Author: cstamas):
This is fixed but not in a way you think: there was a problem how deprecated expression was identified.
OTOH, this warning is not about your POM, but about Mojos/Plugins used in your POM: and in this case surefire 2.22.2 (Maven2 compatibie!) does suffer from this issue, it does use deprecated expression.
> Maven warns wrongly about ${localRepository} expression
> -------------------------------------------------------
>
> Key: MNG-7717
> URL: https://issues.apache.org/jira/browse/MNG-7717
> Project: Maven
> Issue Type: Bug
> Components: Core
> Reporter: Tamas Cservenak
> Assignee: Tamas Cservenak
> Priority: Major
> Fix For: 4.0.0, 4.0.0-alpha-5, 3.9.1
>
>
> With MNG-7706 the {{localRepository}} Mojo parameter was deprecated as it is represented by {{ArtifactRepository}} legacy type. But the code is too eager, it warns about {{settings.localRepository}} expression as well, while it does NOT use this legacy type.
> In short: it checks for parameter {*}name{*}, where instead it should check for *type* and *defaultValue* expression.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)