Adding managed dependencies when resolving provider artifacts (#30442)
Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
This commit is contained in:
parent
ece72cd491
commit
fa5bb72069
1 changed files with 4 additions and 2 deletions
|
@ -59,7 +59,9 @@ public final class Maven {
|
||||||
new ArtifactDescriptorRequest()
|
new ArtifactDescriptorRequest()
|
||||||
.setArtifact(new DefaultArtifact(project.getGroupId(), project.getArtifactId(), "pom", project.getVersion()))
|
.setArtifact(new DefaultArtifact(project.getGroupId(), project.getArtifactId(), "pom", project.getVersion()))
|
||||||
.setRepositories(remoteRepositories));
|
.setRepositories(remoteRepositories));
|
||||||
Artifact artifact = resolveArtifact(groupId, artifactId, projectDescriptor.getDependencies());
|
List<Dependency> dependencies = new ArrayList<>(projectDescriptor.getDependencies());
|
||||||
|
dependencies.addAll(projectDescriptor.getManagedDependencies());
|
||||||
|
Artifact artifact = resolveArtifact(groupId, artifactId, dependencies);
|
||||||
|
|
||||||
if (artifact == null) {
|
if (artifact == null) {
|
||||||
resolveArtifact(groupId, artifactId, projectDescriptor.getManagedDependencies());
|
resolveArtifact(groupId, artifactId, projectDescriptor.getManagedDependencies());
|
||||||
|
|
Loading…
Reference in a new issue