Collection<IntellijDependencyResolver> resolvers = new ArrayList<IntellijDependencyResolver>();
for (final Module module : IntellijUtils.getAllModulesWithIvyIdeaFacet(project)) {
getProgressMonitorThread().setIvy(ivyManager.getIvy(module));
indicator.setText2("Resolving for module " + module.getName());
final IntellijDependencyResolver resolver = new IntellijDependencyResolver(ivyManager);
resolver.resolve(module);
resolvers.add(resolver);
if (indicator.isCanceled()) {
return;
}
}
for (IntellijDependencyResolver resolver : resolvers) {
Module module = resolver.getModule();
updateIntellijModel(module, resolver.getDependencies());
reportProblems(module, resolver.getProblems());
}
}
});
}