Search in sources :

Example 1 with Maven2ServerIndexFetcher

use of org.jetbrains.idea.maven.server.embedder.Maven2ServerIndexFetcher in project intellij-community by JetBrains.

the class NexusIndexerTest method _testDownloading.

public void _testDownloading() throws Exception {
    String id = "remote";
    String url = "file:///" + myRepositoryHelper.getTestDataPath("remote");
    IndexingContext c = addContext(id, myIndexDir, null, url);
    IndexUpdateRequest request = new IndexUpdateRequest(c);
    request.setResourceFetcher(new Maven2ServerIndexFetcher(id, url, myEmbedder.getComponent(WagonManager.class), new NullTransferListener()));
    myUpdater.fetchAndUpdateIndex(request);
    assertSearchWorks();
}
Also used : Maven2ServerIndexFetcher(org.jetbrains.idea.maven.server.embedder.Maven2ServerIndexFetcher) IndexUpdateRequest(org.sonatype.nexus.index.updater.IndexUpdateRequest) IndexingContext(org.sonatype.nexus.index.context.IndexingContext)

Aggregations

Maven2ServerIndexFetcher (org.jetbrains.idea.maven.server.embedder.Maven2ServerIndexFetcher)1 IndexingContext (org.sonatype.nexus.index.context.IndexingContext)1 IndexUpdateRequest (org.sonatype.nexus.index.updater.IndexUpdateRequest)1