2.10. Run the application in native mode
You can compile this same demo as-is into native mode without any modifications. This implies that you no longer need to install a JVM on your production environment. The runtime technology is included in the produced binary and optimized to run with minimal resources required.
Compilation takes a bit longer, so this step is disabled by default.
Build your application again by enabling the
nativeprofile:Using the Quarkus CLI:
quarkus build --nativeUsing Maven:
./mvnw install -DnativeUsing Gradle:
./gradlew build -Dquarkus.native.enabled=true
After waiting a little while, you run the following binary directly:
./target/security-openid-connect-quickstart-1.0.0-SNAPSHOT-runner