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 2020/04/09 17:02:00 UTC

[jira] [Updated] (MPMD-300) Unable to format output with custom renderer (CodeClimateRenderer)

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

Andreas Dangel updated MPMD-300:
--------------------------------
    Fix Version/s: 3.14.0

> Unable to format output with custom renderer (CodeClimateRenderer)
> ------------------------------------------------------------------
>
>                 Key: MPMD-300
>                 URL: https://issues.apache.org/jira/browse/MPMD-300
>             Project: Maven PMD Plugin
>          Issue Type: Bug
>          Components: PMD
>    Affects Versions: 3.13.0
>            Reporter: João Taborda
>            Assignee: Andreas Dangel
>            Priority: Minor
>             Fix For: 3.14.0
>
>
> According to the plugin [docs|https://maven.apache.org/plugins/maven-pmd-plugin/pmd-mojo.html#format] it should be possible to set a custom output format type through specifying the full class name of a renderer from the net.sourceforge.pmd.renderers package.
> However it seems to fail when using e.g. the CodeClimateRenderer:
> {code:sh}
> mvn pmd:pmd -Dformat=net.sourceforge.pmd.renderers.CodeClimateRenderer
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-pmd-plugin:3.13.0:pmd (default-cli) on project hello-world: Execution default-cli of goal org.apache.maven.plugins:maven-pmd-plugin:3.13.0:pmd failed: org.apache.maven.reporting.MavenReportException: Can't find PMD custom format net.sourceforge.pmd.renderers.CodeClimateRenderer: java.lang.NoSuchMethodException: net.sourceforge.pmd.renderers.CodeClimateRenderer.<init>(java.util.Properties)
> {code}
> Use case: this would be useful to integrate with gitlab CI pipelines which expects a code quality report in codeclimate json format.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)