4.9. Run the application in Native mode
This same demo can be compiled into native code. No modifications are required.
This implies that you no longer need to install a JVM on your production environment, as the runtime technology is included in the produced binary and optimized to run with minimal resources.
Compilation takes longer, so this step is turned off by default. You can build again by enabling the native build:
Using the Quarkus CLI:
quarkus build --nativeUsing Maven:
./mvnw install -DnativeUsing Gradle:
./gradlew build -Dquarkus.native.enabled=true
After a while, you can run this binary directly:
./target/security-openid-connect-web-authentication-quickstart-runner