diff --git a/spring-boot-project/spring-boot-docs/pom.xml b/spring-boot-project/spring-boot-docs/pom.xml
index fb8b39965b2..e24e7349919 100644
--- a/spring-boot-project/spring-boot-docs/pom.xml
+++ b/spring-boot-project/spring-boot-docs/pom.xml
@@ -1419,6 +1419,7 @@
${spring.version}
${revision}
${project.basedir}/src/
+ ${project.basedir}/target/generated-resources
diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix/application-properties.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix/application-properties.adoc
index 18259b55b22..40be326e291 100644
--- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix/application-properties.adoc
+++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix/application-properties.adoc
@@ -17,60 +17,60 @@ should not consider this an exhaustive list. Also, you can define your own prope
=== Core properties
-include::../../../target/generated-resources/config-docs/core.adoc[]
+include::{generated-resources-root}/config-docs/core.adoc[]
=== Cache properties
-include::../../../target/generated-resources/config-docs/cache.adoc[]
+include::{generated-resources-root}/config-docs/cache.adoc[]
=== Mail properties
-include::../../../target/generated-resources/config-docs/mail.adoc[]
+include::{generated-resources-root}/config-docs/mail.adoc[]
=== JSON properties
-include::../../../target/generated-resources/config-docs/json.adoc[]
+include::{generated-resources-root}/config-docs/json.adoc[]
=== Data properties
-include::../../../target/generated-resources/config-docs/data.adoc[]
+include::{generated-resources-root}/config-docs/data.adoc[]
=== Transaction properties
-include::../../../target/generated-resources/config-docs/transaction.adoc[]
+include::{generated-resources-root}/config-docs/transaction.adoc[]
=== Data migration properties
-include::../../../target/generated-resources/config-docs/data-migration.adoc[]
+include::{generated-resources-root}/config-docs/data-migration.adoc[]
=== Integration properties
-include::../../../target/generated-resources/config-docs/integration.adoc[]
+include::{generated-resources-root}/config-docs/integration.adoc[]
=== Web properties
-include::../../../target/generated-resources/config-docs/web.adoc[]
+include::{generated-resources-root}/config-docs/web.adoc[]
=== Templating properties
-include::../../../target/generated-resources/config-docs/templating.adoc[]
+include::{generated-resources-root}/config-docs/templating.adoc[]
=== Server properties
-include::../../../target/generated-resources/config-docs/server.adoc[]
+include::{generated-resources-root}/config-docs/server.adoc[]
=== Security properties
-include::../../../target/generated-resources/config-docs/security.adoc[]
+include::{generated-resources-root}/config-docs/security.adoc[]
=== Actuator properties
-include::../../../target/generated-resources/config-docs/actuator.adoc[]
+include::{generated-resources-root}/config-docs/actuator.adoc[]
=== Devtools properties
-include::../../../target/generated-resources/config-docs/devtools.adoc[]
+include::{generated-resources-root}/config-docs/devtools.adoc[]
=== Testing properties
-include::../../../target/generated-resources/config-docs/testing.adoc[]
+include::{generated-resources-root}/config-docs/testing.adoc[]
diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix/auto-configuration-classes.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix/auto-configuration-classes.adoc
index bbf1f587d1d..9511ace9982 100644
--- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix/auto-configuration-classes.adoc
+++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix/auto-configuration-classes.adoc
@@ -13,7 +13,7 @@ the `conditions` endpoint).
=== From the "`spring-boot-autoconfigure`" module
The following auto-configuration classes are from the `spring-boot-autoconfigure` module:
-include::../../../target/generated-resources/auto-configuration-classes-spring-boot-autoconfigure.adoc[]
+include::{generated-resources-root}/auto-configuration-classes-spring-boot-autoconfigure.adoc[]
@@ -21,4 +21,4 @@ include::../../../target/generated-resources/auto-configuration-classes-spring-b
=== From the "`spring-boot-actuator-autoconfigure`" module
The following auto-configuration classes are from the `spring-boot-actuator-autoconfigure` module:
-include::../../../target/generated-resources/auto-configuration-classes-spring-boot-actuator-autoconfigure.adoc[]
+include::{generated-resources-root}/auto-configuration-classes-spring-boot-actuator-autoconfigure.adoc[]
diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix/dependency-versions.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix/dependency-versions.adoc
index 8420cc301b2..0fc8eab8c7f 100644
--- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix/dependency-versions.adoc
+++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix/dependency-versions.adoc
@@ -6,4 +6,4 @@ by Spring Boot in its CLI (Command Line Interface), Maven dependency management,
Gradle plugin. When you declare a dependency on one of these artifacts without declaring
a version, the version listed in the table is used.
-include::../../../target/generated-resources/effective-pom.adoc[]
\ No newline at end of file
+include::{generated-resources-root}/effective-pom.adoc[]
\ No newline at end of file
diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix/test-auto-configuration.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix/test-auto-configuration.adoc
index 0c2df9435ea..6a9f1ad1535 100644
--- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix/test-auto-configuration.adoc
+++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix/test-auto-configuration.adoc
@@ -5,4 +5,4 @@
The following table lists the various `@…Test` annotations that can be used to test
slices of your application and the auto-configuration that they import by default:
-include::../../../target/generated-resources/test-slice-auto-configuration.adoc[]
\ No newline at end of file
+include::{generated-resources-root}/test-slice-auto-configuration.adoc[]
\ No newline at end of file
diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
index 138aa402695..bcb22819c20 100644
--- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
+++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
@@ -304,19 +304,19 @@ The following application starters are provided by Spring Boot under the
`org.springframework.boot` group:
.Spring Boot application starters
-include::../../../target/generated-resources/application-starters.adoc[]
+include::{generated-resources-root}/application-starters.adoc[]
In addition to the application starters, the following starters can be used to add
_<>_ features:
.Spring Boot production starters
-include::../../../target/generated-resources/production-starters.adoc[]
+include::{generated-resources-root}/production-starters.adoc[]
Finally, Spring Boot also includes the following starters that can be used if you want to
exclude or swap specific technical facets:
.Spring Boot technical starters
-include::../../../target/generated-resources/technical-starters.adoc[]
+include::{generated-resources-root}/technical-starters.adoc[]
TIP: For a list of additional community contributed starters, see the
{github-master-code}/spring-boot-project/spring-boot-starters/README.adoc[README file] in