./mvnw --batch-mode --update-snapshots -DskipTests -Pproduction verify
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 --batch-mode --update-snapshots -DskipTests -Pproduction,log4j2 verify
Swap out default "lossy" logging provider
# Using Cloud Native Buildpacks image
./mvnw spring-boot:build-image -Pnative --batch-mode --update-snapshots -DskipTests -Pproduction
# Using pre-installed Graal CE
./mvnw native:compile --batch-mode --update-snapshots -DskipTests -Pproduction -Pnative