[ 
https://issues.apache.org/jira/browse/MNG-7717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17703131#comment-17703131
 ] 

James Howe commented on MNG-7717:
---------------------------------

This seems to have been introduced in 3.9.1, not fixed?
{quote}
[INFO] — surefire:2.22.2:test (default-test) @ my-project —
[WARNING] Parameter 'localRepository' is deprecated core expression; Avoid use 
of ArtifactRepository type. If you need access to local repository, switch to 
'${repositorySystemSession}' expression and get LRM from it instead.
{quote}
The parameter is not mentioned anywhere in my POM.

> 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)

Reply via email to