The goals need an output file name as well, I think.

On Sat, 4 Jul 2020, 03:52 LINUS FERNANDES, <linus.fernan...@gmail.com>
wrote:

> Any particular reason why Maven developers don't seem to like outputting
> text output? I see something similar with the Spotbugs plugin. There's no
> text output either and the XML output is too verbose for my liking.
> I've already filed an issue concerning that.
>
> 'text' doesn't work.
> In my opinion, txt and text should both be viable options.
>
> The PMD goal rejects 'text' and only accepts 'txt'.
>
> Since they're from the same Maven family, the CPD goal must accept txt as
> an option as well. And the documentation is misleading when it says it
> supports specifying 'txt' as an input.
>
> Specifying             sourceforge.pmd.cpd.SimpleRenderer
> works but it outputs a file as the full class name and ignores the
> skipEmptyReport configuration value set to true.
>
> It also generates a cpd.xml file.
>
> Where does a bug report go?
> Jira or the pmd Github repo?
>
> Is there a specific tag for the pmd maven plugin?
>
>
>
>
> On Sat, 4 Jul 2020, 01:56 Greg Chabala, <greg.chab...@gmail.com> wrote:
>
>> 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.
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >
>>
>

Reply via email to