private static void collectGoals(File repository, MavenPlugin plugin, Set<? super String> list) {
    MavenPluginInfo info = MavenArtifactUtil.readPluginInfo(repository, plugin.getMavenId());
    if (info == null) return;

    for (MavenPluginInfo.Mojo m : info.getMojos()) {
      list.add(m.getQualifiedGoal());
    }
  }
private static void collectGoals(File repository, MavenPlugin plugin, Set<? super String> list)