diff --git a/spring-boot-integration-tests/src/test/java/org/springframework/boot/starter/StarterDependenciesIntegrationTests.java b/spring-boot-integration-tests/src/test/java/org/springframework/boot/starter/StarterDependenciesIntegrationTests.java index b2548b5d0b3..b7cfa637d7f 100644 --- a/spring-boot-integration-tests/src/test/java/org/springframework/boot/starter/StarterDependenciesIntegrationTests.java +++ b/spring-boot-integration-tests/src/test/java/org/springframework/boot/starter/StarterDependenciesIntegrationTests.java @@ -61,7 +61,7 @@ public class StarterDependenciesIntegrationTests { public static List getStarters() { List starters = new ArrayList(); for (File file : new File("../spring-boot-starters").listFiles()) { - if (file.isDirectory()) { + if (file.isDirectory() && new File(file, "pom.xml").exists()) { String name = file.getName(); if (name.startsWith(STARTER_NAME_PREFIX) && !EXCLUDED_STARTERS.contains(file.getName())) {