maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Dangel (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MPMD-243) excludeFromFailureFile configuration does not work
Date Mon, 29 Jan 2018 16:34:00 GMT

     [ https://issues.apache.org/jira/browse/MPMD-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andreas Dangel updated MPMD-243:
--------------------------------
    Fix Version/s:     (was: 3.9.0)

> 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
>            Priority: Major
>
> 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
(v7.6.3#76005)

Mime
View raw message