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...@codehaus.org> on 2014/11/29 18:25:10 UTC

[jira] (MPMD-171) Rule properties are ignored when run under MPMD

    [ https://jira.codehaus.org/browse/MPMD-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=358244#comment-358244 ] 

Andreas Dangel commented on MPMD-171:
-------------------------------------

See pull request for unit test: https://github.com/apache/maven-plugins/pull/35

{quote}
Couldn't reproduce it anymore. The issue was probably fixed with PMD 5.0.3/5.0.4.
The bug report is for m-pmd-p 3.0.1, which uses PMD 5.0.2.

Related bugs are: https://sourceforge.net/p/pmd/bugs/1074/ (rule priority doesn't work on group definitions) and https://sourceforge.net/p/pmd/bugs/1089/ (When changing priority in a custom ruleset, violations reported twice)
{quote}

> Rule properties are ignored when run under MPMD
> -----------------------------------------------
>
>                 Key: MPMD-171
>                 URL: https://jira.codehaus.org/browse/MPMD-171
>             Project: Maven PMD Plugin
>          Issue Type: Bug
>          Components: PMD
>    Affects Versions: 3.0.1
>         Environment: Linux
>            Reporter: Johannes Wienke
>
> For our project I have defined a custom ruleset for PMD in an XML file [1]. This ruleset defines properties for some of the standard PMD rules using this syntax:
> {noformat}
> <rule ref="rulesets/java/naming.xml/LongVariable">
>     <properties>
>         <property name="minimum" value="25"/>
>     </properties>
> </rule>
> {noformat}
> When I execute PMD using a parallel ant file we maintain, these custom properties are respected correctly. However, when executing PMD through maven, the properties are completely ignored.
> The pom.xml we are using is available at [2].
> [1] https://code.cor-lab.org/projects/rsb/repository/rsb-java/revisions/7e71d4d3e6d57c8529111a7f7143edeb48ddec59/entry/codecheck/pmd-rules.xml
> [2] https://code.cor-lab.org/projects/rsb/repository/rsb-java/revisions/ff17c0dd008697f70dad27bd0319f4475ab87712/entry/pom.xml



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)