To start your application in the dev profile, run:
./mvnw
To build the final jar and optimize the togg application for production, run:
./mvnw -Pprod clean package
To ensure everything worked, run:
java -jar target/quarkus-app/*.jar
Targeting your Operation System
In order to build a native image locally, your need to have GraalVM installed and GRAALVM_HOME
defined.
You can use the native
profile as follow to build native executable.
./mvnw package -Pnative
Keep in mind that the generated native executable is dependent on your Operating System.
Targeting a container environment If you plan to run your application in a container, run:
./mvnw package -Dnative -Dquarkus.native.container-build=true
It will use a Docker container with GraalVM installed and produce an 64 bit Linux executable.
To launch your application's tests, run:
./mvnw verify
For more information, refer to the [Running tests page][].
For example, to start a postgresql database in a docker container, run:
docker-compose -f src/main/docker/postgresql.yml up -d
To stop it and remove the container, run:
docker-compose -f src/main/docker/postgresql.yml down