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
FieldsModifier and TypeFieldDescriptionprotected final org.eclipse.aether.artifact.Artifactprotected final Stringprotected final InternalSession -
Constructor Summary
ConstructorsConstructorDescriptionDefaultArtifact(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:
getGroupIdin interfaceArtifact
-
getArtifactId
- Specified by:
getArtifactIdin interfaceArtifact
-
getVersion
- Specified by:
getVersionin interfaceArtifact
-
getBaseVersion
- Specified by:
getBaseVersionin interfaceArtifact
-
getExtension
- Specified by:
getExtensionin interfaceArtifact
-
getClassifier
- Specified by:
getClassifierin interfaceArtifact
-
isSnapshot
public boolean isSnapshot()- Specified by:
isSnapshotin interfaceArtifact
-
toCoordinates
- Specified by:
toCoordinatesin interfaceArtifact
-
equals
-
hashCode
public int hashCode() -
toString
-