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 SummaryFieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated.static final intDeprecated.
- 
Method SummaryModifier and TypeMethodDescriptionDeprecated.Get the repository metadata associated with this marker.intDeprecated.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.booleanDeprecated.Whether this represents a snapshot.voidsetMetadata(Metadata metadata) Deprecated.Set the metadata contents.voidsetRepository(ArtifactRepository remoteRepository) Deprecated.Set the repository the metadata was located in.Methods inherited from interface org.apache.maven.artifact.metadata.ArtifactMetadatamergeMethods inherited from interface org.apache.maven.repository.legacy.metadata.ArtifactMetadataextendedToString, getArtifactId, getBaseVersion, getGroupId, getKey, getLocalFilename, getRemoteFilename, merge, storedInArtifactVersionDirectory, storedInGroupDirectory, storeInLocalRepository
- 
Field Details- 
RELEASEstatic final int RELEASEDeprecated.- See Also:
 
- 
SNAPSHOTstatic final int SNAPSHOTDeprecated.- See Also:
 
- 
RELEASE_OR_SNAPSHOTstatic final int RELEASE_OR_SNAPSHOTDeprecated.- See Also:
 
 
- 
- 
Method Details- 
getRepositoryArtifactRepository getRepository()Deprecated.Get the repository the metadata was located in.- Returns:
- the repository
 
- 
setRepositoryDeprecated.Set the repository the metadata was located in.- Parameters:
- remoteRepository- the repository
 
- 
getMetadataMetadata getMetadata()Deprecated.Get the repository metadata associated with this marker.- Returns:
- the metadata, or nullif none loaded
 
- 
setMetadataDeprecated.Set the metadata contents.- Parameters:
- metadata- the metadata
 
- 
isSnapshotboolean isSnapshot()Deprecated.Whether this represents a snapshot.- Returns:
- if it is a snapshot
 
- 
getNatureint getNature()Deprecated.- Returns:
- The artifact quality this metadata refers to.
 
- 
getPolicyDeprecated.Gets the policy that applies to this metadata regarding the specified repository.- Parameters:
- repository- The repository for which to determine the policy, must not be- null.
- Returns:
- The policy, never null.
 
 
-