public static String toPath(Artifact artifact) {
   return toPath(
       artifact.getGroupId(),
       artifact.getArtifactId(),
       artifact.getVersion(),
       "." + artifact.getType());
 }
 public static String toPath(Artifact artifact, String extension) {
   return toPath(
       artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(), extension);
 }