Search in sources :

Example 1 with ProgressConsumer

use of org.jetbrains.idea.maven.aether.ProgressConsumer in project intellij-community by JetBrains.

the class DependencyResolvingBuilder method getRepositoryManager.

private static ArtifactRepositoryManager getRepositoryManager(final CompileContext context) {
    ArtifactRepositoryManager manager = MANAGER_KEY.get(context);
    if (manager == null) {
        manager = new ArtifactRepositoryManager(getLocalRepoDir(context), new ProgressConsumer() {

            public void consume(String message) {
                context.processMessage(new ProgressMessage(message));
            }
        });
        // further init manager here
        MANAGER_KEY.set(context, manager);
    }
    return manager;
}
Also used : ProgressConsumer(org.jetbrains.idea.maven.aether.ProgressConsumer) ProgressMessage(org.jetbrains.jps.incremental.messages.ProgressMessage) ArtifactRepositoryManager(org.jetbrains.idea.maven.aether.ArtifactRepositoryManager)

Aggregations

ArtifactRepositoryManager (org.jetbrains.idea.maven.aether.ArtifactRepositoryManager)1 ProgressConsumer (org.jetbrains.idea.maven.aether.ProgressConsumer)1 ProgressMessage (org.jetbrains.jps.incremental.messages.ProgressMessage)1