You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Henning Schmiedehausen (Jira)" <ji...@apache.org> on 2023/05/01 04:52:00 UTC
[jira] [Commented] (MPMD-368) Parameter 'localRepository' is deprecated
[ https://issues.apache.org/jira/browse/MPMD-368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17718155#comment-17718155 ]
Henning Schmiedehausen commented on MPMD-368:
---------------------------------------------
This is a constant pain for our integration builds as this is the only plugin right now that reports this problem. Any update on a fix (not just a workaround)?
> Parameter 'localRepository' is deprecated
> -----------------------------------------
>
> Key: MPMD-368
> URL: https://issues.apache.org/jira/browse/MPMD-368
> Project: Maven PMD Plugin
> Issue Type: Bug
> Reporter: Elliotte Rusty Harold
> Priority: Major
>
> Probably since Maven 3.9.1 this warning is seen in builds:
> [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.
> This broke the CI and has been worked around (MPMD-367) but the root cause should be addressed. This same issue might appear in other plugins as well and break their CIs that check to see there are no warnings in a build.
> I'm not sure whether this can be fixed without breaking compatibility with older Maven versions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)