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 2019/03/31 18:25:00 UTC

[jira] [Commented] (MPMD-279) pmd-plugin 3.11.0 not failing build when violations detected

    [ https://issues.apache.org/jira/browse/MPMD-279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16806230#comment-16806230 ] 

Andreas Dangel commented on MPMD-279:
-------------------------------------

This looks like expected behavior: The option maxAllowedViolations is set to 9999, which makes the build fail only for more than 9999 violations, but there were only 4 violations...

See [https://maven.apache.org/plugins/maven-pmd-plugin/check-mojo.html#maxAllowedViolations]

 
{quote}[DEBUG] (f) maxAllowedViolations = 9999

...
[INFO] You have 4 PMD violations. For more details see: C:\Users\jb14684\git\omni-project\omni\omni-core-project\OmniSetting\target\pmd.xml{quote}
 

 A debug log statement would be useful though, to explicitly state the fact, that the build is not failed...

 

> pmd-plugin 3.11.0 not failing build when violations detected
> ------------------------------------------------------------
>
>                 Key: MPMD-279
>                 URL: https://issues.apache.org/jira/browse/MPMD-279
>             Project: Maven PMD Plugin
>          Issue Type: Bug
>          Components: PMD
>    Affects Versions: 3.11.0
>            Reporter: Jeffrey Bennett
>            Priority: Major
>         Attachments: build-snippet.txt
>
>
> Specified failurePriority=5 and failOnViolation=true.   For code with violations, expected 'mvn clean verify' to result in BUILD FAILED, but got BUILD SUCCESS instead.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)