Package org.apache.maven.internal.impl
Class DefaultArtifact
java.lang.Object
org.apache.maven.internal.impl.DefaultArtifact
- All Implemented Interfaces:
- Artifact
A wrapper class around a maven resolver artifact.
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultArtifact(InternalSession session, org.eclipse.aether.artifact.Artifact artifact) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanorg.eclipse.aether.artifact.ArtifactThe artifactId of the artifact.The base version of the artifact.The classifier of the artifact.The file extension of the artifact.The groupId of the artifact.The version of the artifact.inthashCode()booleanDetermines whether this artifact uses a snapshot version.key()Returns a unique identifier for this artifact.Shortcut forsession.createArtifactCoordinate(artifact)toString()
- 
Constructor Details- 
DefaultArtifactpublic DefaultArtifact(@Nonnull InternalSession session, @Nonnull org.eclipse.aether.artifact.Artifact artifact) 
 
- 
- 
Method Details- 
getArtifactpublic org.eclipse.aether.artifact.Artifact getArtifact()
- 
keyDescription copied from interface:ArtifactReturns a unique identifier for this artifact. The identifier is composed of groupId, artifactId, extension, classifier, and version.
- 
getGroupIdDescription copied from interface:ArtifactThe groupId of the artifact.- Specified by:
- getGroupIdin interface- Artifact
- Returns:
- the groupId
 
- 
getArtifactIdDescription copied from interface:ArtifactThe artifactId of the artifact.- Specified by:
- getArtifactIdin interface- Artifact
- Returns:
- the artifactId
 
- 
getVersionDescription copied from interface:ArtifactThe version of the artifact.- Specified by:
- getVersionin interface- Artifact
- Returns:
- the version
 
- 
getBaseVersionDescription copied from interface:ArtifactThe base version of the artifact.- Specified by:
- getBaseVersionin interface- Artifact
- Returns:
- the version
 
- 
getExtensionDescription copied from interface:ArtifactThe file extension of the artifact.- Specified by:
- getExtensionin interface- Artifact
- Returns:
- the extension
 
- 
getClassifierDescription copied from interface:ArtifactThe classifier of the artifact.- Specified by:
- getClassifierin interface- Artifact
- Returns:
- the classifier or an empty string if none, never null
 
- 
isSnapshotpublic boolean isSnapshot()Description copied from interface:ArtifactDetermines whether this artifact uses a snapshot version.- Specified by:
- isSnapshotin interface- Artifact
- Returns:
- trueif the artifact is a snapshot,- falseotherwise
- See Also:
 
- 
toCoordinateDescription copied from interface:ArtifactShortcut forsession.createArtifactCoordinate(artifact)- Specified by:
- toCoordinatein interface- Artifact
- Returns:
- an ArtifactCoordinate
- See Also:
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-