ArtifactRepository repository = repositorySystem.buildArtifactRepository( repo );
if ( executionRequest != null )
{
repositorySystem.injectMirror( Arrays.asList( repository ), executionRequest.getMirrors() );
repositorySystem.injectProxy( Arrays.asList( repository ), executionRequest.getProxies() );
repositorySystem.injectAuthentication( Arrays.asList( repository ), executionRequest.getServers() );
}
return repository;