Re: Maven moving to the next level: the build/consumer pom

2020-07-03 Thread Jaroslav Tulach
Hello Robert, I am not sure how to deal with your announcement and given no reaction on the dev@netbeans mailing list, I am probably not alone. Can you formulate your issue as a bug report? E.g. have you tried to use your new Maven with NetBeans and did you face a problem? Having steps to

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

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

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

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,

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

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[2]: How does surefire 3.0.0-M5 run JPMS with junit5?

2020-07-03 Thread Alex Orlov
Hi Tibor,   Thank you for your answer. I’ve read the link you provided but didn’t find the answer to my question. I don’t have any questions about how to run jpms tests. I can’t understand how tests are executed without junit platform in boot layer. As I understand we have the following chain:

Re: How does surefire 3.0.0-M5 run JPMS with junit5?

2020-07-03 Thread Tibor Digana
Hi Alex, This is the documentation regarding this topic https://maven.apache.org/surefire/maven-surefire-plugin/examples/jpms.html and you can see the links with the integration tests for TestNG, JUnit4 and JUnit5. These tests use JPMS in main and tests as well. You should be able to access

Re: Maven moving to the next level: the build/consumer pom

2020-07-03 Thread Robert Scholte
On 25-6-2020 02:03:42, Anton Vodonosov wrote: Can this work also allow arbitrary property expression in a module ? Robert Scholte: Currently only the ci-friendly version placeholders are supported. Currently, this practice is discouraged because the deployed pom with property expression is

Re: Maven moving to the next level: the build/consumer pom

2020-07-03 Thread Robert Scholte
On 24-6-2020 00:48:48, Mark Derricutt wrote: Love the work here - I'll definitely be keen on trying this out and see how it interacts with our tiles-maven-plugin. Regarding this "reactor" bit tho - just because a module is in the reactor, doesn't always mean it has the same parent - the

Re: Maven moving to the next level: the build/consumer pom

2020-07-03 Thread Robert Scholte
On 23-6-2020 23:20:31, Matthieu BROUILLARD wrote: Hi Robert, congrats this looks like a great achievement. I presume that the consumer pom means the end of the flatten plugin or is there still some benefit in using flatten plugin? Robert Scholte: The flatten-maven-plugin was introduced when the

How does surefire 3.0.0-M5 run JPMS with junit5?

2020-07-03 Thread Alex Orlov
Hi all,   I want to understand how surefire 3.0.0-M5 run JPMS with junit5. When I run my tests on boot layer I see only two junit modules:   org.junit.jupiter.api org.junit.platform.commons   And there is no platform, no engine. Besides "java.class.path" is empty. Could anyone explain where is

Re: maven failsafe plugin & POJO tests

2020-07-03 Thread Nigel Jones
Thanks for all the replies I did try the test project from @tibordigana which worked well. I was able to change names etc and still have the tests working, but oddly could still not figure out why my main project was failing to find all the correct classes & methods. I ended up abandoning

Re: Build behavior differences between 3.2.5 and 3.3.9 with dependency shading

2020-07-03 Thread Robert Metzger
Hi all, sorry for bringing up this very old thread again: The Flink project is still using Maven 3.2.5 to have the shading behave as we need it. Using such an old Maven version has some issues in our development workflow, as the http library is quite outdated, and developers are working with much

RE: Surefire - Forking - Identifying Tests that run in a particular fork

2020-07-03 Thread Martin Lambert
Hi Falko, Thanks for the suggestion. In the end I created a simple Junit TestExecutionListener class that overrode executionStarted() and executionFinished(); both methods have a TestIdentifier parameter, if this is actually an instance of MethodSource

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

CPD goal in maven plugin does not support txt format.

2020-07-03 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