remoteRepo.setId( TEST_TARGET_ID );
remoteRepo.setUrl( "http://repo1.maven.org/maven2/" );
config.addRemoteRepository( remoteRepo );
ProxyConnectorConfiguration connector = new ProxyConnectorConfiguration();
connector.setSourceRepoId( TEST_SOURCE_ID );
connector.setTargetRepoId( TEST_TARGET_ID );
// TODO: Set these options programatically via list of available policies.
Map<String, String> policies = connector.getPolicies();
policies.put( "releases", new ReleasesPolicy().getDefaultOption() );
policies.put( "snapshots", new SnapshotsPolicy().getDefaultOption() );
policies.put( "checksum", new ChecksumPolicy().getDefaultOption() );
policies.put( "cache-failures", new CachedFailuresPolicy().getDefaultOption() );
policies.put( "propagate-errors", new PropagateErrorsDownloadPolicy().getDefaultOption() );