Skip to content

Commit

Permalink
Make sure dependency node's repositories are used when resolving the …
Browse files Browse the repository at this point in the history
…artifact
  • Loading branch information
aloubyansky committed Nov 28, 2022
1 parent 2a4c7d6 commit 48fd255
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private void visitLeave(DependencyNode node) throws BootstrapMavenException {

Artifact artifact = dep.getArtifact();
if (artifact.getFile() == null) {
artifact = resolver.resolve(artifact).getArtifact();
artifact = resolver.resolve(artifact, node.getRepositories()).getArtifact();
}

int flags = DependencyFlags.DEPLOYMENT_CP;
Expand Down

0 comments on commit 48fd255

Please sign in to comment.