diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/integration-tests.adoc b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/integration-tests.adoc index ec9aa9d0445..c813123ea16 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/integration-tests.adoc +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/integration-tests.adoc @@ -36,6 +36,25 @@ If you need to configure the JMX port, see <>. + + +[[integration-tests-no-starter-parent]] +=== Using Failsafe Without Spring Boot's Parent POM +Spring Boot's Parent POM, `spring-boot-starter-parent`, configures Failsafe's `` to be `${project.build.outputDirectory}`. +Without this configuration, which causes Failsafe to use the compiled classes rather than the repackaged jar, Failsafe cannot load your application's classes. +If you are not using the parent POM, you should configure Failsafe in the same way, as shown in the following example: + +[source,xml,indent=0,subs="verbatim,attributes"] +---- + + org.apache.maven.plugins + maven-failsafe-plugin + + ${project.build.outputDirectory} + + +---- + include::goals/start.adoc[leveloffset=+1] include::goals/stop.adoc[leveloffset=+1]