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

Copy ruleset files into a subdirectory of target

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.13.0
    • Component/s: PMD
    • Labels:
      None

      Description

      From MPMD-289:

      if we're copying ruleset files into the build dir & expecting very specific (and somewhat generic) file names in downstream processes, we should output everything into specific sub-directories under the maven build directory (e.g., target/pmd/report/pmd.xml, target/pmd/rulesets/pmd.xml)

      Note: This improvement will change existing behavior by default.
      Therefore a new parameter should be introduced to allow to change it back to the old behavior.

      Reason why this improvement makes sense: In case, your ruleset is called "pmd.xml", then this conflicts with the report format xml, which is written to "target/pmd.xml" as well. Therefore, the rulesets should be copied into "target/pmd/rulesets/..." instead of to "target/" directly.

        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: