Reorganize packaging and optimizing documentation

Documentation for native executables, CDS, and checkpoint/restore are
now under a common heading in the reference documentation, along with
sections on building container images. A few sections containing
prescriptive workflows have been moved from reference to how-to guides.
This consolidates and improves the consistency of recommendations on
how to package and run applications.

Closes gh-40977
This commit is contained in:
Scott Frederick
2024-06-05 17:20:16 -05:00
parent 16302c18b2
commit 2df0c7961a
50 changed files with 393 additions and 381 deletions

View File

@@ -4,7 +4,7 @@
Spring AOT is a process that analyzes your application at build-time and generate an optimized version of it.
It is a mandatory step to run a Spring `ApplicationContext` in a native image.
NOTE: For an overview of GraalVM Native Images support in Spring Boot, check the xref:reference:native-image/index.adoc[reference documentation].
NOTE: For an overview of GraalVM Native Images support in Spring Boot, check the xref:reference:packaging/native-image/index.adoc[reference documentation].
The Spring Boot Maven plugin offers goals that can be used to perform AOT processing on both application and test code.
@@ -48,7 +48,7 @@ To benefit from the `native` profile, a module that represents an application sh
include::example$aot-native/pom.xml[tags=aot-native]
----
A single project can trigger the generation of a native image on the command-line using either xref:reference:native-image/developing-your-first-application.adoc#native-image.developing-your-first-application.buildpacks.maven[Cloud Native Buildpacks] or xref:reference:native-image/developing-your-first-application.adoc#native-image.developing-your-first-application.native-build-tools.maven[Native Image Build Tools].
A single project can trigger the generation of a native image on the command-line using either xref:how-to:native-image/developing-your-first-application.adoc#howto.native-image.developing-your-first-application.buildpacks.maven[Cloud Native Buildpacks] or xref:how-to:native-image/developing-your-first-application.adoc#howto.native-image.developing-your-first-application.native-build-tools.maven[Native Image Build Tools].
To use the `native` profile with a multi-modules project, you can create a customization of the `native` profile so that it invokes your preferred technique.