From a11af857d9d4d31831507ee6cc4cf0040cbd5aac Mon Sep 17 00:00:00 2001 From: Alexey Loubyansky Date: Sat, 19 Aug 2023 11:59:47 +0200 Subject: [PATCH] Re-use original Maven repositories for generate-code-tests and dev mode --- .../main/java/io/quarkus/maven/QuarkusBootstrapProvider.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/devtools/maven/src/main/java/io/quarkus/maven/QuarkusBootstrapProvider.java b/devtools/maven/src/main/java/io/quarkus/maven/QuarkusBootstrapProvider.java index 2ae61b88271c5..63f8e4aac717a 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/QuarkusBootstrapProvider.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/QuarkusBootstrapProvider.java @@ -185,7 +185,9 @@ private MavenArtifactResolver artifactResolver(QuarkusBootstrapMojo mojo, Launch .setUserSettings(mojo.mavenSession().getRequest().getUserSettingsFile()) .setCurrentProject(mojo.mavenProject().getFile().toString()) .setPreferPomsFromWorkspace(true) - .setProjectModelProvider(getProjectMap(mojo.mavenSession())::get)); + .setProjectModelProvider(getProjectMap(mojo.mavenSession())::get) + // pass the repositories since Maven extensions could manipulate repository configs + .setRemoteRepositories(mojo.remoteRepositories())); } // PROD packaging mode with workspace discovery disabled return MavenArtifactResolver.builder()