Skip to content

Commit

Permalink
Re-use original Maven repositories for generate-code-tests and dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
aloubyansky committed Aug 19, 2023
1 parent 7e1a6b3 commit a11af85
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a11af85

Please sign in to comment.