log( "Installing provider: " + providerArtifact );
ArtifactResolutionResult result;
try
{
MavenMetadataSource metadataSource = (MavenMetadataSource) lookup( ArtifactMetadataSource.ROLE );
ArtifactResolver resolver = (ArtifactResolver) lookup( ArtifactResolver.ROLE );
List remoteRepositories = createRemoteArtifactRepositories();
result = resolver.resolveTransitively( Collections.singleton( providerArtifact ),
createDummyArtifact(), createLocalArtifactRepository(),