Maven 1.x PMD Plugin

PMD exclusion property only accepts one exclusion

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

When trying to exclude files from PMD analysis, it seems that a single exclusion pattern works fine, but as soon as I put in a comma separated list all the exclusions are ignored. For example:

maven.pmd.includes=com/foo/project/*/.java
maven.pmd.excludes=com/foo/project/package/SomeParser*.java

works fine, analysing everything except the SomeParser classes. However,

maven.pmd.includes=com/foo/project/*/.java
maven.pmd.excludes=com/foo/project/package/SomeParser*.java, com/foo/project/package/ADifferentParser*.java

causes the analyser to match as though only maven.pmd.includes was specified.

Activity

Hide
dion gillard added a comment -

Fixed in 1.3-SNAPSHOT of the PMD plugin

Show
dion gillard added a comment - Fixed in 1.3-SNAPSHOT of the PMD plugin

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: