diff --git a/testsuite/src/it/java/io/quarkus/ts/startstop/utils/Commands.java b/testsuite/src/it/java/io/quarkus/ts/startstop/utils/Commands.java index 9826482d..3063d38e 100644 --- a/testsuite/src/it/java/io/quarkus/ts/startstop/utils/Commands.java +++ b/testsuite/src/it/java/io/quarkus/ts/startstop/utils/Commands.java @@ -63,6 +63,9 @@ public class Commands { private static final Pattern numPattern = Pattern.compile("[ \t]*[0-9]+[ \t]*"); private static final Pattern quarkusVersionPattern = Pattern.compile("[ \t]*([^<]*).*"); private static final Pattern trailingSlash = Pattern.compile("/+$"); + private static final String QUARKUS_PLATFORM_GROUP_ID = "com.redhat.quarkus.platform"; + private static final String QUARKUS_UPSTREAM_GROUP_ID = "io.quarkus.platform"; + private static final String REDHAT_VERSION_TAG = "-redhat-"; public static String mvnw() { return Commands.isThisWindows ? "mvnw.cmd" : "./mvnw"; @@ -149,6 +152,14 @@ public static String getQuarkusVersion() { throw new IllegalArgumentException(failure); } + public static String getQuarkusGroupId() { + if (getQuarkusVersion().contains(REDHAT_VERSION_TAG)) { + return QUARKUS_PLATFORM_GROUP_ID; + } + + return QUARKUS_UPSTREAM_GROUP_ID; + } + public static String getBaseDir() { String env = System.getenv().get("basedir"); String sys = System.getProperty("basedir"); diff --git a/testsuite/src/it/java/io/quarkus/ts/startstop/utils/MvnCmds.java b/testsuite/src/it/java/io/quarkus/ts/startstop/utils/MvnCmds.java index a8c13a8a..fa54bf4c 100755 --- a/testsuite/src/it/java/io/quarkus/ts/startstop/utils/MvnCmds.java +++ b/testsuite/src/it/java/io/quarkus/ts/startstop/utils/MvnCmds.java @@ -2,6 +2,7 @@ import java.util.stream.Stream; +import static io.quarkus.ts.startstop.utils.Commands.getQuarkusGroupId; import static io.quarkus.ts.startstop.utils.Commands.getQuarkusNativeProperties; import static io.quarkus.ts.startstop.utils.Commands.getLocalMavenRepoDir; import static io.quarkus.ts.startstop.utils.Commands.getQuarkusVersion; @@ -25,7 +26,7 @@ public enum MvnCmds { GENERATOR(new String[][]{ new String[]{ "mvn", - "io.quarkus.platform:quarkus-maven-plugin:" + getQuarkusVersion() + ":create", + getQuarkusGroupId() + ":quarkus-maven-plugin:" + getQuarkusVersion() + ":create", "-DprojectGroupId=my-groupId", "-DprojectArtifactId=" + Apps.GENERATED_SKELETON.dir, "-DprojectVersion=1.0.0-SNAPSHOT",