@Experimental @Immutable public interface Artifact
| Modifier and Type | Method and Description |
|---|---|
String |
getArtifactId()
The artifactId of the artifact.
|
String |
getClassifier()
The classifier of the artifact.
|
String |
getExtension()
The file extension of the artifact.
|
String |
getGroupId()
The groupId of the artifact.
|
Version |
getVersion()
The version of the artifact.
|
boolean |
isSnapshot()
Determines whether this artifact uses a snapshot version.
|
default String |
key()
Returns a unique identifier for this artifact.
|
ArtifactCoordinate |
toCoordinate()
Shortcut for
session.createArtifactCoordinate(artifact) |
default String key()
@Nonnull String getArtifactId()
@Nonnull String getClassifier()
null.@Nonnull String getExtension()
boolean isSnapshot()
true if the artifact is a snapshot, false otherwise.Session.isVersionSnapshot(String)@Nonnull ArtifactCoordinate toCoordinate()
session.createArtifactCoordinate(artifact)ArtifactCoordinateSession.createArtifactCoordinate(Artifact)Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.