org.apache.maven.artifact
Class ArtifactUtils

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

public final class ArtifactUtils
extends Object


Method Summary
static String artifactId(String groupId, String artifactId, String type, String version)
           
static String artifactId(String groupId, String artifactId, String type, String classifier, String baseVersion)
           
static Map artifactMapByArtifactId(Collection artifacts)
           
static Map artifactMapByVersionlessId(Collection artifacts)
           
static Artifact copyArtifact(Artifact artifact)
           
static boolean isSnapshot(String version)
           
static String toSnapshotVersion(String version)
           
static String versionlessKey(Artifact artifact)
           
static String versionlessKey(String groupId, String artifactId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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)

artifactId

public static String artifactId(String groupId,
                                String artifactId,
                                String type,
                                String version)

artifactId

public static String artifactId(String groupId,
                                String artifactId,
                                String type,
                                String classifier,
                                String baseVersion)

artifactMapByVersionlessId

public static Map artifactMapByVersionlessId(Collection artifacts)

artifactMapByArtifactId

public static Map artifactMapByArtifactId(Collection artifacts)

copyArtifact

public static Artifact copyArtifact(Artifact artifact)


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.