io.mvnpm
importmap
diff --git a/quarkus/server/src/main/java/org/keycloak/quarkus/_private/IDELauncher.java b/quarkus/server/src/main/java/org/keycloak/quarkus/_private/IDELauncher.java
deleted file mode 100644
index 86d4dcea5a2..00000000000
--- a/quarkus/server/src/main/java/org/keycloak/quarkus/_private/IDELauncher.java
+++ /dev/null
@@ -1,59 +0,0 @@
-package org.keycloak.quarkus._private;
-
-import java.nio.file.Path;
-import java.nio.file.Paths;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.keycloak.quarkus.runtime.KeycloakMain;
-import org.keycloak.quarkus.runtime.cli.Picocli;
-
-import io.quarkus.runtime.Quarkus;
-
-/**
- * This main class should be used to start the server in dev mode for development purposes. By running this class,
- * developers should be able to mimic any server behavior and configuration as if they were using the CLI.
- *
- *
There are some limitations during development such as:
- *
- *
- * - Transient dependencies from the keycloak server extension (runtime module) are not eligible for hot-reload
- * - Code changes such as changing the structure of classes (e.g.: new/change methods) should still require a JVM restart
- *
- *
- * Despite the limitations, it should be possible to debug the extension (e.g.: deployment steps) as well as perform changes at runtime
- * without having to restart the JVM.
- *
- * @author Pedro Igor
- */
-public class IDELauncher {
-
- public static void main(String[] args) {
- if (System.getProperty("java.util.logging.manager") == null) {
- System.setProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager");
- }
-
- if (System.getProperty("picocli.disable.closures") == null) {
- System.setProperty("picocli.disable.closures", "true");
- }
-
- if (System.getProperty("java.util.concurrent.ForkJoinPool.common.threadFactory") == null) {
- System.setProperty("java.util.concurrent.ForkJoinPool.common.threadFactory", "io.quarkus.bootstrap.forkjoin.QuarkusForkJoinWorkerThreadFactory");
- }
-
- List devArgs = new ArrayList<>(Picocli.parseArgs(args));
-
- if (System.getProperty("kc.home.dir") == null) {
- // direct the auto-created files to the target folder, so they are cleaned by "mvn clean"
- // users can still provide a different folder by setting the property when starting it from their IDE.
- Path path = Paths.get(System.getProperty("user.dir"), "target", "kc");
- System.setProperty("kc.home.dir", path.toAbsolutePath().toString());
- }
-
- if (devArgs.isEmpty()) {
- devArgs.add("start-dev");
- }
-
- Quarkus.run(KeycloakMain.class, devArgs.toArray(new String[devArgs.size()]));
- }
-}
diff --git a/quarkus/tests/junit5/src/main/java/org/keycloak/Keycloak.java b/quarkus/tests/junit5/src/main/java/org/keycloak/Keycloak.java
index 05ef4570c87..29563eaa517 100644
--- a/quarkus/tests/junit5/src/main/java/org/keycloak/Keycloak.java
+++ b/quarkus/tests/junit5/src/main/java/org/keycloak/Keycloak.java
@@ -114,6 +114,9 @@ public class Keycloak {
}
List args = new ArrayList<>(rawArgs);
+ if (args.isEmpty()) {
+ args.add("start-dev");
+ }
addOptionIfNotSet(args, HttpOptions.HTTP_ENABLED, true);
addOptionIfNotSet(args, HttpOptions.HTTP_PORT);