use of org.sonatype.nexus.index.creator.JarFileContentsIndexCreator in project intellij-community by JetBrains.
the class Maven3ServerIndexerImpl method createIndex.
@Override
public int createIndex(@NotNull String indexId, @NotNull String repositoryId, @Nullable File file, @Nullable String url, @NotNull File indexDir) throws RemoteException, MavenServerIndexerException {
try {
IndexingContext context = myIndexer.addIndexingContextForced(indexId, repositoryId, file, indexDir, url, // repo update url
null, Arrays.asList(new MinimalArtifactInfoIndexCreator(), new JarFileContentsIndexCreator()));
int id = System.identityHashCode(context);
myIndices.put(id, context);
return id;
} catch (Exception e) {
throw new MavenServerIndexerException(wrapException(e));
}
}
Aggregations