[MNG-8090] Fix missing repositories during parent artifact resolution

This commit is contained in:
Guillaume Nodet 2024-08-30 11:02:12 +02:00
parent cdaf86cfe9
commit 0c311e3da1
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ public class DefaultProjectBuilder implements ProjectBuilder {
try {
ArtifactRequest pomRequest = new ArtifactRequest();
pomRequest.setArtifact(pomArtifact);
pomRequest.setRepositories(repositories);
pomRequest.setRepositories(RepositoryUtils.toRepos(request.getRemoteRepositories()));
ArtifactResult pomResult = repoSystem.resolveArtifact(session, pomRequest);
pomArtifact = pomResult.getArtifact();