Class ArtifactUtils

java.lang.Object
org.apache.maven.artifact.ArtifactUtils

public final class ArtifactUtils extends Object
ArtifactUtils
  • Constructor Details

    • ArtifactUtils

      public ArtifactUtils()
  • Method Details

    • isSnapshot

      public static boolean isSnapshot(String version)
    • toSnapshotVersion

      public static String toSnapshotVersion(String version)
    • versionlessKey

      public static String versionlessKey(Artifact artifact)
    • versionlessKey

      public static String versionlessKey(String groupId, String artifactId)
    • key

      public static String key(Artifact artifact)
    • key

      public static String key(String groupId, String artifactId, String version)
    • artifactMapByVersionlessId

      public static Map<String,Artifact> artifactMapByVersionlessId(Collection<Artifact> artifacts)
    • copyArtifactSafe

      public static Artifact copyArtifactSafe(Artifact artifact)
    • copyArtifact

      public static Artifact copyArtifact(Artifact artifact)
    • copyArtifacts

      public static <T extends Collection<Artifact>> T copyArtifacts(Collection<Artifact> from, T to)
      Copy artifact to a collection.
      Type Parameters:
      T - the target collection type
      Parameters:
      from - an artifact collection
      to - the target artifact collection
      Returns:
      to collection
    • copyArtifacts

      public static <K, T extends Map<K, Artifact>> T copyArtifacts(Map<K,? extends Artifact> from, T to)