mirror of https://github.com/apache/maven.git
[MNG-4353] [regression] Plugin dependencies are not downloaded from repos given in the plugin's POM
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@813869 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ee54ab90f8
commit
d8951da832
|
@ -421,7 +421,9 @@ public class DefaultArtifactResolver
|
|||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
RepositoryRequest collectionRequest = request;
|
||||
|
||||
if ( request.isResolveTransitively() )
|
||||
{
|
||||
MetadataResolutionRequest metadataRequest = new DefaultMetadataResolutionRequest( request );
|
||||
|
@ -462,6 +464,9 @@ public class DefaultArtifactResolver
|
|||
|
||||
artifacts = new LinkedHashSet<Artifact>( mergedArtifacts.values() );
|
||||
}
|
||||
|
||||
collectionRequest = new DefaultRepositoryRequest( request );
|
||||
collectionRequest.setRemoteRepositories( resolutionGroup.getResolutionRepositories() );
|
||||
}
|
||||
catch ( ArtifactMetadataRetrievalException e )
|
||||
{
|
||||
|
@ -481,8 +486,8 @@ public class DefaultArtifactResolver
|
|||
|
||||
// After the collection we will have the artifact object in the result but they will not be resolved yet.
|
||||
result =
|
||||
artifactCollector.collect( artifacts, rootArtifact, managedVersions, request, source, collectionFilter,
|
||||
listeners, null );
|
||||
artifactCollector.collect( artifacts, rootArtifact, managedVersions, collectionRequest, source,
|
||||
collectionFilter, listeners, null );
|
||||
|
||||
// We have metadata retrieval problems, or there are cycles that have been detected
|
||||
// so we give this back to the calling code and let them deal with this information
|
||||
|
|
Loading…
Reference in New Issue