Package org.apache.maven.artifact
Class ArtifactUtils
java.lang.Object
org.apache.maven.artifact.ArtifactUtils
ArtifactUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionartifactMapByVersionlessId
(Collection<Artifact> artifacts) static Artifact
copyArtifact
(Artifact artifact) static <T extends Collection<Artifact>>
TcopyArtifacts
(Collection<Artifact> from, T to) Copy artifact to a collection.copyArtifacts
(Map<K, ? extends Artifact> from, T to) static Artifact
copyArtifactSafe
(Artifact artifact) static boolean
isSnapshot
(String version) static String
static String
static String
toSnapshotVersion
(String version) static String
versionlessKey
(String groupId, String artifactId) static String
versionlessKey
(Artifact artifact)
-
Constructor Details
-
ArtifactUtils
public ArtifactUtils()
-
-
Method Details
-
isSnapshot
-
toSnapshotVersion
-
versionlessKey
-
versionlessKey
-
key
-
key
-
artifactMapByVersionlessId
-
copyArtifactSafe
-
copyArtifact
-
copyArtifacts
Copy artifact to a collection.- Type Parameters:
T
- the target collection type- Parameters:
from
- an artifact collectionto
- the target artifact collection- Returns:
to
collection
-
copyArtifacts
-