Package org.apache.maven.artifact
Class ArtifactUtils
java.lang.Object
org.apache.maven.artifact.ArtifactUtils
ArtifactUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionartifactMapByVersionlessId(Collection<Artifact> artifacts) static ArtifactcopyArtifact(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 ArtifactcopyArtifactSafe(Artifact artifact) static booleanisSnapshot(String version) static Stringstatic Stringstatic StringtoSnapshotVersion(String version) static StringversionlessKey(String groupId, String artifactId) static StringversionlessKey(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:
tocollection
-
copyArtifacts
-