Uploaded image for project: 'Maven PMD Plugin'
  1. Maven PMD Plugin
  2. MPMD-300

Unable to format output with custom renderer (CodeClimateRenderer)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.13.0
    • 3.14.0
    • PMD
    • None

    Description

      According to the plugin docs 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:

      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)
      

      Use case: this would be useful to integrate with gitlab CI pipelines which expects a code quality report in codeclimate json format.

      Attachments

        Activity

          People

            adangel Andreas Dangel
            joao.tab João Taborda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: