diff --git a/spring-boot-samples/spring-boot-sample-profile/pom.xml b/spring-boot-samples/spring-boot-sample-profile/pom.xml
index fe6a60f931f..d629ad22f92 100644
--- a/spring-boot-samples/spring-boot-sample-profile/pom.xml
+++ b/spring-boot-samples/spring-boot-sample-profile/pom.xml
@@ -17,11 +17,6 @@
${project.groupId}
spring-boot-starter
-
- org.yaml
- snakeyaml
- runtime
-
${project.groupId}
spring-boot-starter-test
diff --git a/spring-boot-starters/spring-boot-starter/pom.xml b/spring-boot-starters/spring-boot-starter/pom.xml
index e08f7e4de5f..dd439ccb8a4 100644
--- a/spring-boot-starters/spring-boot-starter/pom.xml
+++ b/spring-boot-starters/spring-boot-starter/pom.xml
@@ -27,5 +27,10 @@
spring-boot-starter-logging
${project.version}
+
+ org.yaml
+ snakeyaml
+ runtime
+