Class SnapshotArtifactRepositoryMetadata
- java.lang.Object
-
- org.apache.maven.artifact.repository.metadata.AbstractRepositoryMetadata
-
- org.apache.maven.artifact.repository.metadata.SnapshotArtifactRepositoryMetadata
-
- All Implemented Interfaces:
ArtifactMetadata
,RepositoryMetadata
,ArtifactMetadata
public class SnapshotArtifactRepositoryMetadata extends AbstractRepositoryMetadata
Metadata for the artifact version directory of the repository.- Author:
- Brett Porter TODO split instantiation (versioning, plugin mappings) from definition
-
-
Field Summary
-
Fields inherited from interface org.apache.maven.artifact.repository.metadata.RepositoryMetadata
RELEASE, RELEASE_OR_SNAPSHOT, SNAPSHOT
-
-
Constructor Summary
Constructors Constructor Description SnapshotArtifactRepositoryMetadata(Artifact artifact)
SnapshotArtifactRepositoryMetadata(Artifact artifact, Snapshot snapshot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getArtifactId()
String
getBaseVersion()
String
getGroupId()
Object
getKey()
int
getNature()
Gets the artifact quality this metadata refers to.ArtifactRepository
getRepository()
Get the repository the metadata was located in.boolean
isSnapshot()
Whether this represents a snapshot.void
setRepository(ArtifactRepository remoteRepository)
Set the repository the metadata was located in.boolean
storedInArtifactVersionDirectory()
Whether this metadata should be stored alongside the artifact.boolean
storedInGroupDirectory()
Whether this metadata should be stored alongside the group.-
Methods inherited from class org.apache.maven.artifact.repository.metadata.AbstractRepositoryMetadata
createMetadata, createVersioning, extendedToString, getLocalFilename, getMetadata, getPolicy, getRemoteFilename, merge, merge, setMetadata, storeInLocalRepository, toString, updateRepositoryMetadata
-
-
-
-
Method Detail
-
storedInGroupDirectory
public boolean storedInGroupDirectory()
Description copied from interface:ArtifactMetadata
Whether this metadata should be stored alongside the group.
-
storedInArtifactVersionDirectory
public boolean storedInArtifactVersionDirectory()
Description copied from interface:ArtifactMetadata
Whether this metadata should be stored alongside the artifact.
-
getGroupId
public String getGroupId()
-
getArtifactId
public String getArtifactId()
-
getBaseVersion
public String getBaseVersion()
-
getKey
public Object getKey()
-
isSnapshot
public boolean isSnapshot()
Description copied from interface:RepositoryMetadata
Whether this represents a snapshot.- Returns:
- if it is a snapshot
-
getNature
public int getNature()
Description copied from interface:RepositoryMetadata
Gets the artifact quality this metadata refers to. One ofRepositoryMetadata.RELEASE
,RepositoryMetadata.SNAPSHOT
orRepositoryMetadata.RELEASE_OR_SNAPSHOT
.- Specified by:
getNature
in interfaceRepositoryMetadata
- Overrides:
getNature
in classAbstractRepositoryMetadata
- Returns:
- The artifact quality this metadata refers to.
-
getRepository
public ArtifactRepository getRepository()
Description copied from interface:RepositoryMetadata
Get the repository the metadata was located in.- Returns:
- the repository
-
setRepository
public void setRepository(ArtifactRepository remoteRepository)
Description copied from interface:RepositoryMetadata
Set the repository the metadata was located in.- Parameters:
remoteRepository
- the repository
-
-