Uploaded image for project: 'Maven PMD Plugin'
  1. Maven PMD Plugin
  2. MPMD-368

Parameter 'localRepository' is deprecated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.20.0, 3.21.0
    • 4.0.0-M1
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              elharo Elliotte Rusty Harold
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: