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

Andreas Dangel reassigned MPMD-300:
-----------------------------------

    Assignee: Andreas Dangel

> 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
>
> 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)

Reply via email to