throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, "The version "
+ gavRequest.getVersion() + " does not match the repository policy!");
}
if (isPom) {
helper.storeArtifactPom(gavRequest, is, null);
isPom = false;
}
else {
if (uploadContext.isPomAvailable()) {
helper.storeArtifact(gavRequest, is, null);