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

Work around PMD bug #1155 which crashes the plugin with an empty ruleset element.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.1
    • 3.1
    • CPD, PMD
    • None
    • Patch

    Description

      This is a workaround for a bug in PMD up to and including 5.0.5 (I have an outstanding pull request to fix it for 5.0.6).

      The PMD plugin passes an empty ruleset list into the RulesetFactory in PMD which in turn crashes. The workaround is to use a dummy ruleset that does nothing when no other rules are present.

      Unfortunately it is not possible to just omit the ruleset element in some cases (because then the default list of rulesets is used). In my use case, I want the plugin to be present but no rules active.

      The pull request to fix this problem is here: https://github.com/apache/maven-plugins/pull/16

      The patch is here: https://github.com/apache/maven-plugins/pull/16.patch

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              henning Henning Schmiedehausen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: