From 5bc35e8f44990d0ea18c0cbc59442f6d8d6b5179 Mon Sep 17 00:00:00 2001 From: Scott Frederick Date: Fri, 9 Apr 2021 14:22:51 -0500 Subject: [PATCH] Extract XML example from Maven plugin adoc file See gh-25993 --- .../docs/asciidoc/packaging-oci-image.adoc | 21 ++---------------- .../runtime-jvm-configuration-pom.xml | 22 +++++++++++++++++++ 2 files changed, 24 insertions(+), 19 deletions(-) create mode 100644 spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/maven/packaging-oci-image/runtime-jvm-configuration-pom.xml 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 183513772f..fc0f6c538c 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 @@ -243,26 +243,9 @@ The buildpack-provided `JAVA_TOOL_OPTIONS` value can be modified to customize JV Environment variable modifications that should be stored in the image and applied to every deployment can be set as described in the {paketo-reference}/buildpacks/configuration/#environment-variables[Paketo documentation] and shown in the following example: -[source,xml,indent=0,subs="verbatim,attributes"] +[source,xml,indent=0,subs="verbatim,attributes",tabsize=4] ---- - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - - -XX:+HeapDumpOnOutOfMemoryError - - - - - - - +include::../maven/packaging-oci-image/runtime-jvm-configuration-pom.xml[tags=runtime-jvm-configuration] ---- diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/maven/packaging-oci-image/runtime-jvm-configuration-pom.xml b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/maven/packaging-oci-image/runtime-jvm-configuration-pom.xml new file mode 100644 index 0000000000..cb246cae29 --- /dev/null +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/maven/packaging-oci-image/runtime-jvm-configuration-pom.xml @@ -0,0 +1,22 @@ + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + -XX:+HeapDumpOnOutOfMemoryError + + + + + + + + +