All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.commons.maven.Artifact Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commons.maven;

import java.io.IOException;
import java.nio.file.Path;

/**
 * @since 14.0
 **/
public interface Artifact {

   static Artifact fromString(String name) {
      if ((name.startsWith("http://")) || name.startsWith("https://") || name.startsWith("file://") || name.startsWith("ftp://")) {
         return new URLArtifact(name);
      } else if (MavenArtifact.isMavenArtifact(name)) {
         return MavenArtifact.fromString(name);
      } else {
         return new LocalArtifact(name);
      }
   }

   Path resolveArtifact() throws IOException;

   Artifact verbose(boolean verbose);

   Artifact force(boolean force);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy