Re: Can't test a package with Surefire?

2024-02-05 Thread Alexander Kriegisch
FYI, I have just created https://issues.apache.org/jira/browse/SUREFIRE-2234 with a suggested fix. -- Alexander Kriegisch https://scrum-master.de Alexander Kriegisch schrieb am 06.02.2024 08:58 (GMT +07:00): > Sorry, hit the send button too quickly. > > The fact that e.g. on Bash > > mvn

Re: Can't test a package with Surefire?

2024-02-05 Thread Alexander Kriegisch
Sorry, hit the send button too quickly. The fact that e.g. on Bash mvn test -Dtest=dev.aspectj.* does not find any tests, but mvn test -Dtest=dev/aspectj/* does, is IMO simply a bug that ought to be fixed. -- Alexander Kriegisch https://scrum-master.de Alexander Kriegisch schrieb am

Re: Can't test a package with Surefire?

2024-02-05 Thread Alexander Kriegisch
Bash: mvn test -Dtest=dev.aspectj.MyO* Windows Cmd/PowerShell: mvn test "-Dtest=dev.aspectj.MyO*" -- Alexander Kriegisch https://scrum-master.de Gary D. Gregory schrieb am 05.02.2024 22:22 (GMT +07:00): > Hi All: > > mvn clean test

Re: Can a plugin permit a dependency override by the user setting a simple option?

2024-02-05 Thread Alexander Kriegisch
Jörg, I asked for a working example and not theory for a reason: The plugin POM already uses properties, and it simply does not work to override them. Example: 1 ... org.acme foo ${foo.version} Now, the project using the plugin does this: 2 org.acme my-plugin 3

Re: How to completely override/replace parent's site.xml

2024-02-05 Thread Alexander Kriegisch
Thanks Jörg, but that does not answer my question. I do not want to generate a site for the parent. I am talking about the module using the parent POM. BTW, the parent POM is not even under my control, it is from another organisation. I am consuming it, because I like the defaults for plugin and

Re: How to completely override/replace parent's site.xml

2024-02-05 Thread Jörg Schaible
Hi Alexander, On Monday, 5. February 2024, 05:36:35 schrieb Alexander Kriegisch wrote: > Neither in [1] nor in [2] I can find a way to completely disregard or > override a site.xml from the parent POM. I want to inherit a lot from a > specific parent POM, such as dependency management and

Re: Can a plugin permit a dependency override by the user setting a simple option?

2024-02-05 Thread Jörg Schaible
Hello Alexander, On Sunday, 4. February 2024, 04:20:22 CET Alexander Kriegisch write: > Hi Jörg. > > Thanks for the reply. Can you please elaborate with examples? Option 1 > is what I need, but that does not work. Or maybe we have a > misunderstanding about the term "property". Are we talking

Re: Can't test a package with Surefire?

2024-02-05 Thread Stanimir Stamenkov
Mon, 5 Feb 2024, /sebb/: Under Windows, mvn test -Dtest=org.apache.commons.compress.harmony.unpack200.tests.ArchiveTest fails with Unknown lifecycle phase ".apache.commons.compress.harmony.pack2000.tests.ArchiveTest". but the following works: mvn test

Re: Can't test a package with Surefire?

2024-02-05 Thread sebb
There appears to be a different syntax for wild-card matching. On macOS, the following works: mvn test -Dtest=org.apache.commons.compress.harmony.unpack200.tests.ArchiveTest but mvn test -Dtest=org.apache.commons.compress.harmony.unpack200.tests.* fails with No tests matching pattern

Re: Can't test a package with Surefire?

2024-02-05 Thread Gary D. Gregory
Yep, slashes work. The double quoting gives a syntax error. TY. Gary On 2024/02/05 15:53:41 Stanimir Stamenkov wrote: > Mon, 5 Feb 2024, /sebb/: > > > That looks like a Windows quoting issue; Windows does not like '.' in > > parameter values > > > > Try > > > > mvn clean test > >

Re: Can't test a package with Surefire?

2024-02-05 Thread Stanimir Stamenkov
Mon, 5 Feb 2024, /sebb/: That looks like a Windows quoting issue; Windows does not like '.' in parameter values Try mvn clean test -D"test=org.apache.commons.compress.harmony.unpack200.tests.*" Dot (.) doesn't appear a standard delimiter on Windows: *

Re: Can't test a package with Surefire?

2024-02-05 Thread sebb
That looks like a Windows quoting issue; Windows does not like '.' in parameter values Try mvn clean test -D"test=org.apache.commons.compress.harmony.unpack200.tests.*" On Mon, 5 Feb 2024 at 15:25, Gary D. Gregory wrote: > > Forgot to say: > > Apache Maven 3.9.6

Re: Can't test a package with Surefire?

2024-02-05 Thread Gary D. Gregory
Forgot to say: Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae) Maven home: C:\java\apache-maven-3.9.6 Java version: 1.8.0_382, vendor: Temurin, runtime: C:\Program Files\Eclipse Adoptium\jdk-8.0.382.5-hotspot\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows

Can't test a package with Surefire?

2024-02-05 Thread Gary D. Gregory
Hi All: mvn clean test -Dtest=org.apache.commons.compress.harmony.unpack200.tests.* gives me: [INFO] --- surefire:3.2.5:test (default-test) @ commons-compress --- [INFO] [INFO] BUILD FAILURE [INFO]