org.apache.maven.artifact
Class ArtifactUtils
java.lang.Object
org.apache.maven.artifact.ArtifactUtils
public final class ArtifactUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArtifactUtils
public ArtifactUtils()
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)
- Returns
to
collection
copyArtifacts
public static <K,T extends Map<K,Artifact>> T copyArtifacts(Map<K,? extends Artifact> from,
T to)
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.