Generic Quarkus start commands
Start Quarkus in Development Mode # mvn -Dquarkus-profile=prod compile quarkus:dev Start Quarkus in Development Mode and Production Profile # mvn -Dquarkus-profile=prod compile quarkus:dev
Quarkus and Keycloak
Adding a %prod.
profile prefix to quarkus.oidc.auth-server-url
ensures that Dev Services for Keycloak
will launch a container for you when the application is run in a dev mode. See Running the Application in Dev mode section below for more information.
To locate the Realm Export File you need the following application.porperties entry
%prod.quarkus.oidc.auth-server-url=https://localhost:8543/auth/realms/RBAC ... # Tell Dev Services for Keycloak to import the realm file # This property is not effective when running the application in JVM or Native modes quarkus.keycloak.devservices.realm-path=quarkus-realm.json
If you want to avoid quarkus from starting its own Keycloak Instance add to your mvn call: Dquarkus-profile=prod
Start Quarkus in Development Mode and Production Profile # mvn -Dquarkus-profile=prod compile quarkus:dev
Be First to Comment