./mvnw clean package
Defaults to H2 in-memory backend
The below represent a collection of Maven profiles available in the Maven POM.
- MySQL (mysql)
- adds a dependency on r2dbc-mysql
- Postgres (postgres)
- adds a dependency on r2dbc-postrgesql
- Log4J2 logging (log4j2)
- Native image (native)
- uses Spring AOT to compile a native executable with GraalVM
./mvnw clean package -Drdbms=mysql
Work with MySQL backend
./mvnw clean package -Drdbms=postgres
Work with Postgres backend
./mvnw clean package -Plog4j2
Swap out default "lossy" logging provider
# Using Cloud Native Buildpacks image
./mvnw spring-boot:build-image -Pnative
# Using pre-installed Graal CE
./mvnw native:compile -Pnative -DskipTests