@NotNull
  public static Path getArtifactNioPath(File localRepository, String groupId, String artifactId, String version, String type) {
    groupId = sanitizeMavenIdentifer(groupId);
    artifactId = sanitizeMavenIdentifer(artifactId);
    version = sanitizeMavenIdentifer(version);
    Path dir = null;
    if (StringUtil.isEmpty(groupId)) {
      for (String each : DEFAULT_GROUPS) {
        dir = getArtifactDirectory(localRepository, each, artifactId);
        if (Files.exists(dir)) break;
      }
    }
    else {
      dir = getArtifactDirectory(localRepository, groupId, artifactId);
    }

    if (StringUtil.isEmpty(version)) version = resolveVersion(dir);
    return dir.resolve(version).resolve(artifactId + "-" + version + "." + type);
  }
@NotNull
  public static Path getArtifactNioPath(File localRepository, String groupId, String artifactId, String version, String type)