./mvnw clean package
The below represent a collection of Maven profiles available in the Maven POM.
- Log4J2 logging (log4j2)
- Native image (native)
- uses Spring AOT to compile a native executable with GraalVM
./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