Better still, use the full classname of the renderer, looks like the plugin only know how to handle xml and csv: https://github.com/apache/maven-pmd-plugin/blob/master/src/main/java/org/apache/maven/plugins/pmd/CpdReport.java#L456
On Fri, Jul 3, 2020 at 3:22 PM Greg Chabala <greg.chab...@gmail.com> wrote: > Looks like a typo in the documentation. From your link "See the > net.sourceforge.pmd.renderers package javadoc for available renderers". > > You want the text renderer? > https://github.com/pmd/pmd/blob/master/pmd-core/src/main/java/net/sourceforge/pmd/renderers/TextRenderer.java > > Try "text" instead of "txt". > > On Fri, Jul 3, 2020 at 2:18 AM LINUS FERNANDES <linus.fernan...@gmail.com> > wrote: > >> If this is a bug, where do I file it? >> >> On Fri, 3 Jul 2020, 11:46 LINUS FERNANDES, <linus.fernan...@gmail.com> >> wrote: >> >> > >> > I receive the following message while using the cpd goal in the PMD >> maven >> > plugin. >> > >> > maven.plugins:maven-pmd-plugin:3.13.0:cpd (cpd) on project DSAlgos: >> > Execution cpd of goal >> org.apache.maven.plugins:maven-pmd-plugin:3.13.0:cpd >> > failed: org.apache.maven.reporting.MavenReportException: Can't find CPD >> > custom format txt: java.lang.ClassNotFoundException >> > >> > The documentation states that the txt format is supported. >> > >> > https://maven.apache.org/plugins/maven-pmd-plugin/cpd-mojo.html#format >> > >> > The pmd goal supports the txt format. >> > >> > >> > Regards, >> > Linus. >> > >> > >> > >> > >> >