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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.9.0
    • 3.11.0
    • PMD
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: