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;
}
Aggregations