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

Maven PMD Plugin ignores PMD processing errors

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.7
    • Component/s: PMD
    • Labels:
      None
    • Flags:
      Patch

      Description

      If a source file cannot be parsed by PMD, the error is reported as a "processing error" and continues with the next file.
      However, the maven plugin doesn't use this information. This leads to a situation, where project build is successful despite PMD violations - because PMD skipped files which it can't parse.

      This is not such a big problem if the files are compiled before (e.g. executing PMD in a phase later than compile) - as the compiler plugin would fail the build already.
      But if "pmd:pmd" or "pmd:check" is called directly, maven would not fail the build.

      See also https://sourceforge.net/p/pmd/mailman/message/34715839/

      I'll provide a PR for this bug.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: