public static boolean hasArtifactFile(File localRepository, MavenId id) {
    return hasArtifactFile(localRepository, id, "jar");
  }
public static boolean hasArtifactFile(File localRepository, MavenId id)