mirror of https://github.com/apache/maven.git
[MNG-8090] Fix missing repositories during parent artifact resolution
This commit is contained in:
parent
cdaf86cfe9
commit
0c311e3da1
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue