Benedikt Ritter created MPMD-243:
------------------------------------
Summary: 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.8, 3.7, 3.5, 3.2
Reporter: Benedikt Ritter
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)