Package org.apache.maven.internal.impl
Class DefaultArtifact
java.lang.Object
org.apache.maven.internal.impl.DefaultArtifact
- All Implemented Interfaces:
Artifact
- Direct Known Subclasses:
DefaultDownloadedArtifact
,DefaultProducedArtifact
A wrapper class around a maven resolver artifact.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.eclipse.aether.artifact.Artifact
protected final String
protected final InternalSession
-
Constructor Summary
ConstructorDescriptionDefaultArtifact
(InternalSession session, org.eclipse.aether.artifact.Artifact artifact) -
Method Summary
-
Field Details
-
session
-
artifact
-
key
-
-
Constructor Details
-
DefaultArtifact
public DefaultArtifact(@Nonnull InternalSession session, @Nonnull org.eclipse.aether.artifact.Artifact artifact)
-
-
Method Details
-
getArtifact
public org.eclipse.aether.artifact.Artifact getArtifact() -
key
-
getGroupId
- Specified by:
getGroupId
in interfaceArtifact
-
getArtifactId
- Specified by:
getArtifactId
in interfaceArtifact
-
getVersion
- Specified by:
getVersion
in interfaceArtifact
-
getBaseVersion
- Specified by:
getBaseVersion
in interfaceArtifact
-
getExtension
- Specified by:
getExtension
in interfaceArtifact
-
getClassifier
- Specified by:
getClassifier
in interfaceArtifact
-
isSnapshot
public boolean isSnapshot()- Specified by:
isSnapshot
in interfaceArtifact
-
toCoordinates
- Specified by:
toCoordinates
in interfaceArtifact
-
equals
-
hashCode
public int hashCode() -
toString
-