URI rootUri = getUrl();
if (rootUri == null) {
throw new InvalidUserDataException("You must specify a URL for a Maven repository.");
}
MavenResolver resolver = new MavenLocalResolver(getName(), rootUri, getTransport(rootUri.getScheme()), getLocallyAvailableResourceFinder(), getArtifactFileStore());
for (URI repoUrl : getArtifactUrls()) {
resolver.addArtifactLocation(repoUrl);
}
return resolver;
}