Quarkus applications can be built as executable JARs or native binary images.
Building an Executable JAR
Build the application, passing the
uberJar flag to trigger the creation of the executable JAR:
mvn clean package -DuberJar=true -DskipTests
fruit-taster-1.0-SNAPSHOT.jar- containing just the classes and resources of the projects; it’s the regular artifact produced by the Maven build
fruit-taster-1.0-SNAPSHOT-runner.jar- since the flag
-DuberJar=truewas specified, this is an executable "Uber" JAR that can be run with
Running the Application Locally
From the terminal, run the executable JAR using the Java runtime:
java -jar target/*-runner.jar
curlcall to the retrieval API from a second terminal:
curl -s http://localhost:8080/fruits
import.sqlscript is only run in development mode, you will only see an empty reply:
In the terminal with the running application, press CTRL-C to stop the running application.