Gav gav =
new Gav(ai.groupId, ai.artifactId, ai.version, ai.classifier,
mavenRepository.getArtifactPackagingMapper().getExtensionForPackaging(ai.packaging),
null, null, null, false, null, false, null);
ResourceStoreRequest req =
new ResourceStoreRequest(mavenRepository.getGavCalculator().gavToPath(gav));
a.setResourceURI(createRepositoryReference(request, ai.repository, req.getRequestPath()).toString());
}
}
catch (NoSuchRepositoryException e) {
getLogger().warn("No such repository: '" + ai.repository + "'.", e);