[
https://issues.apache.org/jira/browse/MPMD-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Dangel reassigned MPMD-243:
-----------------------------------
Assignee: Andreas Dangel
> excludeFromFailureFile configuration does not work
> --------------------------------------------------
>
> Key: MPMD-243
> URL: https://issues.apache.org/jira/browse/MPMD-243
> Project: Maven PMD Plugin
> Issue Type: Bug
> Components: PMD
> Affects Versions: 3.2, 3.5, 3.7, 3.8
> Reporter: Benedikt Ritter
> Assignee: Andreas Dangel
>
> The excludeFromFailureFile configruation is ignored since version 3.1 of
> Maven PMD plugin. Here is my plugin configuration:
> {code}
> <plugin>
> <artifactId>maven-pmd-plugin</artifactId>
> <!-- Latest version is 3.8, all version above 3.1 ignore the excludes
> file, hence we're downgrading to 3.1 -->
> <version>3.8</version>
> <configuration>
> <verbose>true</verbose>
> </configuration>
> <executions>
> <execution>
> <goals>
> <goal>check</goal>
> </goals>
> <configuration>
>
> <excludeFromFailureFile>${basedir}/config/pmd/pmd-exclude.properties</excludeFromFailureFile>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> The pmd-exclude.properties file has the following content:
> {code}
> com.example.ClassWithLotsOfStaticImports=TooManyStaticImports
> {code}
> When I execude mvn clean pmd:check, I get a violation for
> ClassWithLotsOfStaticImports. It works with 3.0 and 3.1. I've testet several
> version above 3.1.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)