Re: CPD goal in maven plugin does not support txt format.

2020-07-04 Thread LINUS FERNANDES
Filled out two bug reports: https://issues.apache.org/jira/plugins/servlet/mobile#issue/MPMD-306 https://issues.apache.org/jira/plugins/servlet/mobile#issue/MPMD-305 On Sat, 4 Jul 2020, 11:40 LINUS FERNANDES, wrote: > Isn't the Maven plugin supposed to give me the same kind of output that

Re: CPD goal in maven plugin does not support txt format.

2020-07-03 Thread LINUS FERNANDES
Isn't the Maven plugin supposed to give me the same kind of output that I'd get either from the CLI or the Ant task? Maven reports are usually output in html in the site lifecycle and that's usually viewed from the browser. If it's not supported, the documentation must state that. Outputting the

Re: CPD goal in maven plugin does not support txt format.

2020-07-03 Thread Greg Chabala
>> 'text' doesn't work. >> In my opinion, txt and text should both be viable options. >> >> The PMD goal rejects 'text' and only accepts 'txt'. Sorry about that. Just a guess on my part from looking at the source of TextRenderer

Re: CPD goal in maven plugin does not support txt format.

2020-07-03 Thread LINUS FERNANDES
>You want the text renderer? https://github.com/pmd/pmd/blob/master/pmd-core/src/main/java/net/sourceforge/pmd/renderers/TextRenderer.java What do you mean? Obviously, I want text output, not XML. I prefer less verbose output since I'm looking at it through a text editor. On Sat, 4 Jul 202

Re: CPD goal in maven plugin does not support txt format.

2020-07-03 Thread LINUS FERNANDES
Thanks, Greg. On Sat, 4 Jul 2020, 04:05 LINUS FERNANDES, wrote: > The goals need an output file name as well, I think. > > On Sat, 4 Jul 2020, 03:52 LINUS FERNANDES, > wrote: > >> Any particular reason why Maven developers don't seem to like outputting >> text output? I see something similar wi

Re: CPD goal in maven plugin does not support txt format.

2020-07-03 Thread LINUS FERNANDES
The goals need an output file name as well, I think. On Sat, 4 Jul 2020, 03:52 LINUS FERNANDES, 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

Re: CPD goal in maven plugin does not support txt format.

2020-07-03 Thread LINUS FERNANDES
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, tx

Re: CPD goal in maven plugin does not support txt format.

2020-07-03 Thread Greg Chabala
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 wrote: > Looks like a

Re: CPD goal in maven plugin does not support txt format.

2020-07-03 Thread Greg Chabala
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 "

Re: CPD goal in maven plugin does not support txt format.

2020-07-03 Thread LINUS FERNANDES
If this is a bug, where do I file it? On Fri, 3 Jul 2020, 11:46 LINUS FERNANDES, 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

CPD goal in maven plugin does not support txt format.

2020-07-02 Thread LINUS FERNANDES
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 c