Re: Questions about -dtest command line

2023-02-22 Thread Arnaud bourree
Hi, Not a response to your question. IMO, that's bad practice to use inheritance for test code factorization. Regardes, Arnaud Le mar. 21 févr. 2023, 21:32, DJ Kim a écrit : > Hi, I hope you are doing well. > > I had an issue with the command line -dTest=class#method, where it is an > inherit

Re: maven-surefire-plugin add artifact as additionalClasspathElement

2023-02-22 Thread Stephane Passignat
Hello, thank you everyone for these suggestions. Let's go back to my original issue. I need to add a library to maven classpath. The library I need is another RepositoryLayoutFactory, to download artifact located is a repository which is not yet supported by Maven. Actually it's a basic HTT

Re: [m-deploy-plugin] Deploy javadoc archive only

2023-02-22 Thread Greg Chabala
Am I correct in my reading, that they found a similar use case for why installing/deploying without a main artifact was allowed, and thus why a test was guarding that behavior, but then decided it wasn't 'the Maven Way' enough and ripped it out? That makes it seem like a dummy jar is the only solu

Re: [m-deploy-plugin] Deploy javadoc archive only

2023-02-22 Thread Tamás Cservenák
Found this thread discussing this very change, may be helpful: https://markmail.org/message/cmu5rh6i4cbmkh6e HTH Tamas On Wed, Feb 22, 2023 at 7:27 PM Tamás Cservenák wrote: > Howdy, > > Not directly helpful, but this change was introduced in early 3.0.0-M1: > https://issues.apache.org/jira/bro

Re: [m-deploy-plugin] Deploy javadoc archive only

2023-02-22 Thread Tamás Cservenák
Howdy, Not directly helpful, but this change was introduced in early 3.0.0-M1: https://issues.apache.org/jira/browse/MDEPLOY-205 By reading the issue, I am really unsure about the exact intent. But, there is already a comment on issue (someone else having similar problem) Let's see if anyone els

[m-deploy-plugin] Deploy javadoc archive only

2023-02-22 Thread Bernhard Schuhmann
Hello! I'm building a JavaDoc archive for a jar file with mvn javadoc:javadoc assembly:single deploy and maven-jar-plugin disabled so that only the JavaDoc archive gets deployed. This has been working until updating to 3.9.0 (maven-deploy-plugin 3.x) -because I only attach the JavaDoc archiv

Re: unexpected behavior between inheritance and -dtest with surefire

2023-02-22 Thread DJ Kim
Hello, I actually used -Dtest=foo. Sorry for the confusion. Kim On Wed, Feb 22, 2023 at 12:19 PM Tamás Cservenák wrote: > Howdy, > > unrelated to your question, and unsure if this is intentional from your > side, but Maven user properties (like the "test" is) on CLI should be set > using "-Dte

Re: unexpected behavior between inheritance and -dtest with surefire

2023-02-22 Thread Tamás Cservenák
Howdy, unrelated to your question, and unsure if this is intentional from your side, but Maven user properties (like the "test" is) on CLI should be set using "-Dtest=foo" (uppercase letter D) and not "-dtest=foo" as you wrote. HTH T On Wed, Feb 22, 2023 at 5:43 PM DJ Kim wrote: > Hi there, >

Fwd: unexpected behavior between inheritance and -dtest with surefire

2023-02-22 Thread DJ Kim
Hi there, Yesterday I posted a question about -dtest. To give a bit more of a context. I have a child class that extends parent, and I would only like to run -dtest=childclass#MethodinheritedfromParent. Unfortunately, the surefire executed all the test cases inherited from parent (unexpected be