public void updateRepository(String name) throws Exception {
if (getCaveRepositoryService().getRepository(name) != null) {
throw new IllegalArgumentException("Cave repository " + name + " doesn't exist");
}
CaveRepository caveRepository = getCaveRepositoryService().getRepository(name);
caveRepository.scan();
}
public void uploadArtifact(String repository, String artifactUrl, boolean generateObr) throws Exception {
if (getCaveRepositoryService().getRepository(repository) != null) {
throw new IllegalArgumentException("Cave repository " + repository + " doesn't exist");