private void runIndexing(MavenRepositoryInfo repositoryInfo, File tempDirectory, MavenServerProgressIndicator indicator)
    throws IOException, MavenServerProcessCanceledException, MavenServerIndexerException {
    String path = repositoryInfo.getKind() == RepositoryKind.LOCAL ? repositoryInfo.getUrl() : null;
    String url = repositoryInfo.getKind() == RepositoryKind.REMOTE ? repositoryInfo.getUrl() : null;
    MavenIndexId id =
      new MavenIndexId(repositoryInfo.getId(), repositoryInfo.getId(), path, url, tempDirectory.getAbsolutePath());
    doUpdateIndex(id, true, indicator);
  }
private void runIndexing(MavenRepositoryInfo repositoryInfo, File tempDirectory, MavenServerProgressIndicator indicator)