// 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() );
policies.put( "propagate-errors-on-update", new PropagateErrorsOnUpdateDownloadPolicy().getDefaultOption() );
config.addProxyConnector( connector );