}
ArtifactRepository artifactRepository = repoFactory.createArtifactRepository( configuration.getId(),
configuration.getUrl(), layout,
snapshotsPolicy, releasesPolicy );
ProxiedArtifactRepository repository = new ProxiedArtifactRepository( artifactRepository );
repository.setCacheFailures( configuration.isCacheFailures() );
repository.setHardFail( configuration.isHardFail() );
repository.setName( configuration.getName() );
repository.setUseNetworkProxy( configuration.isUseNetworkProxy() );
return repository;
}