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

Aggregate report in multi-module projects doesn't use correct auxclasspath

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.9.0
    • Fix Version/s: 3.11.0
    • Component/s: PMD
    • Labels:
      None

      Description

      When generating a site with the pmd report enabled and using "aggregate=true", then more PMD violations are found than it should be.

       

      The reason is probably a wrong configured auxclasspath for PMD: In aggregate mode, PMD is executed once for all modules. The classpath needs to include all dependencies of all modules, in oder for the typeresolution feature to work. Currently, only the compile classpath of the parent module is used.

       

      Relevant code parts:

       

        Attachments

          Activity

            People

            • Assignee:
              adangel Andreas Dangel
              Reporter:
              adangel Andreas Dangel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: