}
private RemoteRepository getRemoteRepoFromDeployment( DeploymentRepository repo ) {
RemoteRepository.Builder remoteRepoBuilder = new RemoteRepository.Builder( repo.getId(), repo.getLayout(), repo.getUrl() )
.setSnapshotPolicy(new RepositoryPolicy(true,
RepositoryPolicy.UPDATE_POLICY_DAILY,
RepositoryPolicy.CHECKSUM_POLICY_WARN))
.setReleasePolicy(new RepositoryPolicy(true,
RepositoryPolicy.UPDATE_POLICY_ALWAYS,
RepositoryPolicy.CHECKSUM_POLICY_WARN));
Settings settings = MavenSettings.getSettings();
Server server = settings.getServer( repo.getId() );