mirror of https://github.com/apache/maven.git
o formatting
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@774348 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
26e3763a58
commit
861244fe51
|
@ -324,8 +324,16 @@ public class DefaultArtifactResolver
|
||||||
List<ConflictResolver> conflictResolvers )
|
List<ConflictResolver> conflictResolvers )
|
||||||
throws ArtifactResolutionException, ArtifactNotFoundException
|
throws ArtifactResolutionException, ArtifactNotFoundException
|
||||||
{
|
{
|
||||||
ArtifactResolutionRequest request = new ArtifactResolutionRequest().setArtifact( originatingArtifact ).setManagedVersionMap( managedVersions )
|
ArtifactResolutionRequest request = new ArtifactResolutionRequest()
|
||||||
.setLocalRepository( localRepository ).setRemoteRepostories( remoteRepositories ).setMetadataSource( source ).setFilter( filter ).setListeners( listeners );
|
.setArtifact( originatingArtifact )
|
||||||
|
// This is required by the surefire plugin
|
||||||
|
.setArtifactDependencies( artifacts )
|
||||||
|
.setManagedVersionMap( managedVersions )
|
||||||
|
.setLocalRepository( localRepository )
|
||||||
|
.setRemoteRepostories( remoteRepositories )
|
||||||
|
.setMetadataSource( source )
|
||||||
|
.setFilter( filter )
|
||||||
|
.setListeners( listeners );
|
||||||
|
|
||||||
return resolveWithExceptions( request );
|
return resolveWithExceptions( request );
|
||||||
}
|
}
|
||||||
|
@ -507,7 +515,7 @@ public class DefaultArtifactResolver
|
||||||
// Add the root artifact
|
// Add the root artifact
|
||||||
result.addArtifact( rootArtifact );
|
result.addArtifact( rootArtifact );
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue