org.apache.maven.artifact.metadata.ArtifactMetadata, org.apache.maven.repository.legacy.metadata.ArtifactMetadataAbstractRepositoryMetadata, ArtifactRepositoryMetadatapublic interface RepositoryMetadata
extends org.apache.maven.artifact.metadata.ArtifactMetadata
| Modifier and Type | Field | Description |
|---|---|---|
static int |
RELEASE |
|
static int |
RELEASE_OR_SNAPSHOT |
|
static int |
SNAPSHOT |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.maven.artifact.repository.metadata.Metadata |
getMetadata() |
Get the repository metadata associated with this marker.
|
int |
getNature() |
Gets the artifact quality this metadata refers to.
|
org.apache.maven.artifact.repository.ArtifactRepositoryPolicy |
getPolicy(org.apache.maven.artifact.repository.ArtifactRepository repository) |
Gets the policy that applies to this metadata regarding the specified repository.
|
org.apache.maven.artifact.repository.ArtifactRepository |
getRepository() |
Get the repository the metadata was located in.
|
boolean |
isSnapshot() |
Whether this represents a snapshot.
|
void |
setMetadata(org.apache.maven.artifact.repository.metadata.Metadata metadata) |
Set the metadata contents.
|
void |
setRepository(org.apache.maven.artifact.repository.ArtifactRepository remoteRepository) |
Set the repository the metadata was located in.
|
static final int RELEASE
static final int SNAPSHOT
static final int RELEASE_OR_SNAPSHOT
org.apache.maven.artifact.repository.ArtifactRepository getRepository()
void setRepository(org.apache.maven.artifact.repository.ArtifactRepository remoteRepository)
remoteRepository - the repositoryorg.apache.maven.artifact.repository.metadata.Metadata getMetadata()
null if none loadedvoid setMetadata(org.apache.maven.artifact.repository.metadata.Metadata metadata)
metadata - the metadataboolean isSnapshot()
int getNature()
org.apache.maven.artifact.repository.ArtifactRepositoryPolicy getPolicy(org.apache.maven.artifact.repository.ArtifactRepository repository)
repository - The repository for which to determine the policy, must not be null.null.