From e61ef57f308e2007f3bac3d82cce058766282ea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Tue, 4 Aug 2026 16:24:44 +0200 Subject: [PATCH] Restore additional repositories for integrtion tests as well As it turns out, intTest are also affected. See gh-51266 --- .../java/org/springframework/boot/maven/MavenBuild.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/build-plugin/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven/MavenBuild.java b/build-plugin/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven/MavenBuild.java index e662a3a50cb..d2ecefe0050 100644 --- a/build-plugin/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven/MavenBuild.java +++ b/build-plugin/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven/MavenBuild.java @@ -69,8 +69,6 @@ class MavenBuild { private final Properties properties = new Properties(); - private String root = "intTest"; - private @Nullable ProjectCallback preparation; private @Nullable File projectDir; @@ -104,7 +102,6 @@ class MavenBuild { } MavenBuild project(String root, String project) { - this.root = root; this.projectDir = new File("src/" + root + "/projects/" + project); return this; } @@ -166,10 +163,7 @@ class MavenBuild { } }); - Path settingsXmlPath = "dockerTest".equals(this.root) - ? Paths.get("build", "generated-resources", "settings", "settings.xml") - : Paths.get("src", "intTest", "projects", "settings.xml"); - String settingsXml = Files.readString(settingsXmlPath) + String settingsXml = Files.readString(Paths.get("build", "generated-resources", "settings", "settings.xml")) .replace("@localCentralUrl@", new File("build/test-maven-repository").toURI().toURL().toString()) .replace("@localRepositoryPath@", new File("build/local-maven-repository").getAbsolutePath()); Files.writeString(destination.resolve("settings.xml"), settingsXml, StandardOpenOption.CREATE_NEW);