final String path = searchPattern.replaceAll(P_ORG, group.get()).replaceAll(P_MODULE, artifact.getName());
return new URI(base + path);
}
protected URI calculateArtifactURI(Module module, Artifact artifact) throws URISyntaxException {
final Group group = module.getGroup();
final String path = artifactPattern.replaceAll(P_ORG, group.get()).replaceAll(P_MODULE, module.getArtifact().getName())
.replaceAll(P_VERSION, module.getArtifact().getVersion().plain()).replaceAll(P_ARTIFACT, artifact.asString())
.replaceAll(P_EXT, artifact.getExtension());
return new URI(base + path);
}