Polish Maven documentation to mention native profile

This commit is contained in:
Stephane Nicoll
2022-10-18 15:36:38 +02:00
parent f0d1eb7891
commit 4b778ff4c1
2 changed files with 5 additions and 0 deletions

View File

@@ -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]

View File

@@ -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 `<version>` tags for those dependencies when used in your own POM.
* An execution of the <<goals.adoc#goals-repackage, `repackage` goal>> 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`)