Skip to content

Commit

Permalink
Update MavenUtils.java; fix for repo lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrWeissDe authored Sep 26, 2023
1 parent 7af7db0 commit 8f72c9b
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,10 @@ public static List<File> resolveArtifacts(List<Artifact> artifacts, List<RemoteR
ArtifactRequest request = new ArtifactRequest();

// create a CollectRequest - for all first level dependencies
CollectRequest collectRequest = new CollectRequest();

for (Artifact artifact : artifacts) {
request.setArtifact(artifact);
request.setRepositories(remoteRepos);

CollectRequest collectRequest = new CollectRequest();
collectRequest.setRepositories(remoteRepos);

for (Artifact artifact : artifacts) {
collectRequest.addDependency(new Dependency(artifact, "compile"));
}

Expand Down

0 comments on commit 8f72c9b

Please sign in to comment.