goals.get(plugin).add(goal);
}
}
final MavenPluginsManager pluginsMgr = MavenPluginsManager.getInstance(project);
final Runnable loader = new Runnable() {
public void run() {
final Set<Map.Entry<String, Map<String, Set<String>>>> entries = data.entrySet();
for (Map.Entry<String, Map<String, Set<String>>> pomEntry : entries) {
final String url = pomEntry.getKey();
final Map<String, Set<String>> goals = pomEntry.getValue();
final Set<Map.Entry<String, Set<String>>> goalEntries = goals.entrySet();
for (Map.Entry<String, Set<String>> goalEntry : goalEntries) {
final String id = goalEntry.getKey();
final PluginGoalContainer plugin = pluginsMgr.getPlugin(id);
if (plugin == null)
continue;
final Set<String> pluginGoals = goalEntry.getValue();
for (String goalName : pluginGoals) {