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

Cannot configure multiple executions (ie. cpd, pmd) independantly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • 2.5
    • None
    • CPD, PMD
    • None

    Description

      When trying to configure cpd and pmd differently (ie. includeTests for PMD, but not for CPD), the plugin does not honour configuration within the execution.
      For example, if a ruleset file is specified in <configuration> within the <execution>, it is ignored, and the default ruleset is applied.

      In the testcase:
      $ mvn install
      ^ This fails with a PMD error, because the ruleset is ignored due to the <configuration> being within the <execution>
      $ mvn install -Pwith-pmd-that-works
      ^ This passes, because it is a profile where the <configuration> is within <plugin>, not <execution>

      Attachments

        1. maven-pmd-plugin-bug.zip
          4 kB
          Derek Lewis
        2. maven-pmd-plugin-bug-2.zip
          19 kB
          Derek Lewis

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lewisd Derek Lewis
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: