if(repositories==null)
throw new IllegalArgumentException("repositories must not be null");
List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories =
new ArrayList<org.eclipse.aether.repository.RemoteRepository>();
for(RemoteRepository rr : repositories) {
RepositoryPolicy releasePolicy = new RepositoryPolicy(true,
rr.getReleaseUpdatePolicy(),
rr.getReleaseChecksumPolicy());
RepositoryPolicy snapshotPolicy = new RepositoryPolicy(true,
rr.getSnapshotUpdatePolicy(),
rr.getSnapshotChecksumPolicy());
org.eclipse.aether.repository.RemoteRepository.Builder repoBuilder =
new org.eclipse.aether.repository.RemoteRepository.Builder(rr.getId(), "default", rr.getUrl());