use of org.apache.archiva.configuration.model.RemoteRepositoryConfiguration in project archiva by apache.
the class AbstractRepositoryServletProxiedTestCase method setupSnapshotsRemoteRepo.
protected void setupSnapshotsRemoteRepo() throws Exception {
remoteSnapshots = createServer("snapshots");
assertServerSetupCorrectly(remoteSnapshots);
RemoteRepositoryConfiguration remoteRepositoryConfiguration = archivaConfiguration.getConfiguration().getRemoteRepositoriesAsMap().get(remoteSnapshots.id);
if (remoteRepositoryConfiguration != null) {
archivaConfiguration.getConfiguration().removeRemoteRepository(remoteRepositoryConfiguration);
}
archivaConfiguration.getConfiguration().addRemoteRepository(remoteSnapshots.config);
setupCleanRepo(remoteSnapshots.root);
}
Aggregations