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
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
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
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
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
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
> >
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:
*
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
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