throw new ForgeException("The \"metadata.json\" found in archive: " + moduleArchive.getAbsolutePath() +
" has no version");
try {
if(metadataRepo.resolve(metadata.getName(), metadata.getVersion()) != null)
throw new AlreadyPublishedException("Module " + metadata.getName() + ':' + metadata.getVersion() +
" has already been published");
}
catch(HttpResponseException e) {
// A SC_NOT_FOUND can be expected and is OK.
if(e.getStatusCode() != HttpStatus.SC_NOT_FOUND)