From ef29fa8d2351d92ac5fc60f647083638fdf0d9ee Mon Sep 17 00:00:00 2001 From: Alexey Loubyansky Date: Mon, 11 Dec 2023 22:57:15 +0100 Subject: [PATCH] Allow specifying a groupId pattern with ':' as a suffix for quarkus --trace command --- domino/app/src/main/java/io/quarkus/domino/cli/Quarkus.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/domino/app/src/main/java/io/quarkus/domino/cli/Quarkus.java b/domino/app/src/main/java/io/quarkus/domino/cli/Quarkus.java index 201ccb1f..19098867 100644 --- a/domino/app/src/main/java/io/quarkus/domino/cli/Quarkus.java +++ b/domino/app/src/main/java/io/quarkus/domino/cli/Quarkus.java @@ -404,7 +404,11 @@ public static ArtifactCoordsPattern toArtifactCoordsPattern(String wildcardPatte var versionPattern = wildcard; var parts = wildcardPattern.split(":"); if (parts.length > 0) { - artifactIdPattern = parts[0]; + if (parts.length == 1 && wildcardPattern.charAt(wildcardPattern.length() - 1) == ':') { + groupIdPattern = parts[0]; + } else { + artifactIdPattern = parts[0]; + } if (parts.length > 1) { groupIdPattern = parts[0]; artifactIdPattern = parts[1];