Interface RepositoryMetadata
- All Superinterfaces:
ArtifactMetadata
,ArtifactMetadata
- All Known Implementing Classes:
AbstractRepositoryMetadata
,ArtifactRepositoryMetadata
,GroupRepositoryMetadata
,SnapshotArtifactRepositoryMetadata
Deprecated.
Describes repository directory metadata.
TODO not happy about the store method - they use "this"
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.static final int
Deprecated.static final int
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Get the repository metadata associated with this marker.int
Deprecated.Gets the artifact quality this metadata refers to.getPolicy
(ArtifactRepository repository) Deprecated.Gets the policy that applies to this metadata regarding the specified repository.Deprecated.Get the repository the metadata was located in.boolean
Deprecated.Whether this represents a snapshot.void
setMetadata
(Metadata metadata) Deprecated.Set the metadata contents.void
setRepository
(ArtifactRepository remoteRepository) Deprecated.Set the repository the metadata was located in.Methods inherited from interface org.apache.maven.artifact.metadata.ArtifactMetadata
merge
Methods inherited from interface org.apache.maven.repository.legacy.metadata.ArtifactMetadata
extendedToString, getArtifactId, getBaseVersion, getGroupId, getKey, getLocalFilename, getRemoteFilename, merge, storedInArtifactVersionDirectory, storedInGroupDirectory, storeInLocalRepository
-
Field Details
-
RELEASE
static final int RELEASEDeprecated.- See Also:
-
SNAPSHOT
static final int SNAPSHOTDeprecated.- See Also:
-
RELEASE_OR_SNAPSHOT
static final int RELEASE_OR_SNAPSHOTDeprecated.- See Also:
-
-
Method Details
-
getRepository
ArtifactRepository getRepository()Deprecated.Get the repository the metadata was located in.- Returns:
- the repository
-
setRepository
Deprecated.Set the repository the metadata was located in.- Parameters:
remoteRepository
- the repository
-
getMetadata
Metadata getMetadata()Deprecated.Get the repository metadata associated with this marker.- Returns:
- the metadata, or
null
if none loaded
-
setMetadata
Deprecated.Set the metadata contents.- Parameters:
metadata
- the metadata
-
isSnapshot
boolean isSnapshot()Deprecated.Whether this represents a snapshot.- Returns:
- if it is a snapshot
-
getNature
int getNature()Deprecated.- Returns:
- The artifact quality this metadata refers to.
-
getPolicy
Deprecated.Gets the policy that applies to this metadata regarding the specified repository.- Parameters:
repository
- The repository for which to determine the policy, must not benull
.- Returns:
- The policy, never
null
.
-