diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/packaging-oci-image.adoc b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/packaging-oci-image.adoc index 786e068eef8..462bd226eef 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/packaging-oci-image.adoc +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/packaging-oci-image.adoc @@ -4,6 +4,7 @@ The plugin can create https://github.com/opencontainers/image-spec[OCI images] using a https://buildpacks.io/[buildpack]. Images can be built using the `build-image` goal and a local Docker installation. +The easiest way to get started is to to invoke `mvn spring-boot:build-image` on a project. It is possible to automate the creation of an image whenever the `package` phase is invoked, as shown in the following example: [source,xml,indent=0,subs="verbatim,attributes"] @@ -51,19 +52,11 @@ If you need to customize the builder used to create the image, configure yours a org.springframework.boot spring-boot-maven-plugin {version} - - - build-image - - build-image - - - - mine/java-cnb-builder - - - - + + + mine/java-cnb-builder + + @@ -88,19 +81,11 @@ You can take control over the name, as shown in the following example: org.springframework.boot spring-boot-maven-plugin {version} - - - build-image - - build-image - - - - example.com/library/${project.artifactId} - - - - + + + example.com/library/${project.artifactId} + +