You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andreas Dangel (JIRA)" <ji...@apache.org> on 2018/01/09 07:58:00 UTC
[jira] [Resolved] (MPMD-243) excludeFromFailureFile configuration
does not work
[ https://issues.apache.org/jira/browse/MPMD-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Dangel resolved MPMD-243.
---------------------------------
Resolution: Cannot Reproduce
Fix Version/s: 3.9.0
Added integration test to verify, the configuration is applied with id=default-cli.
Works as expected.
> 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
> Fix For: 3.9.0
>
>
> 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)