From 4b778ff4c18949b22f83e125cb878d578d5c0566 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 18 Oct 2022 15:36:38 +0200 Subject: [PATCH] Polish Maven documentation to mention native profile --- .../spring-boot-maven-plugin/src/docs/asciidoc/aot.adoc | 4 ++++ .../spring-boot-maven-plugin/src/docs/asciidoc/using.adoc | 1 + 2 files changed, 5 insertions(+) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/aot.adoc b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/aot.adoc index e569bded9e..e9ec813692 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/aot.adoc +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/aot.adoc @@ -19,6 +19,8 @@ To configure your application to use this feature, add an execution for the `pro include::../maven/aot/pom.xml[tags=aot] ---- +TIP: If you are using `spring-boot-starter-parent`, this execution is automatically configured if you enable the `native` profile. + As the `BeanFactory` is fully prepared at build-time, conditions are also evaluated. This has an important difference compared to what a regular Spring Boot application does at runtime. For instance, if you want to opt-in or opt-out for certain features, you need to configure the environment used at build time to do so. @@ -39,6 +41,8 @@ To configure your application to use this feature, add an execution for the `pro include::../maven/aot-test/pom.xml[tags=aot] ---- +TIP: If you are using `spring-boot-starter-parent`, this execution is automatically configured if you enable the `nativeTest` profile. + As with application AOT processing, the `BeanFactory` is fully prepared at build-time. include::goals/process-test-aot.adoc[leveloffset=+1] diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/using.adoc b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/using.adoc index 58d13bae7b..ebcd436884 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/using.adoc +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/using.adoc @@ -9,6 +9,7 @@ The parent project provides the following features: * A dependency management section, inherited from the `spring-boot-dependencies` POM, that manages the versions of common dependencies. This dependency management lets you omit `` tags for those dependencies when used in your own POM. * An execution of the <> with a `repackage` execution id. +* A `native` profile that configures the build to be able to generate a Native image. * Sensible https://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html[resource filtering]. * Sensible plugin configuration (https://github.com/ktoso/maven-git-commit-id-plugin[Git commit ID], and https://maven.apache.org/plugins/maven-shade-plugin/[shade]). * Sensible resource filtering for `application.properties` and `application.yml` including profile-specific files (for example, `application-dev.properties` and `application-dev.yml`)