public class ProjectArtifactMetadata extends AbstractArtifactMetadata
artifact| Constructor and Description |
|---|
ProjectArtifactMetadata(Artifact artifact) |
ProjectArtifactMetadata(Artifact artifact,
File file) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseVersion() |
File |
getFile() |
Object |
getKey() |
String |
getLocalFilename(ArtifactRepository repository)
Get the filename of this metadata on the local repository.
|
String |
getRemoteFilename()
Get the filename of this metadata on the remote repository.
|
void |
merge(ArtifactMetadata metadata) |
void |
merge(ArtifactMetadata metadata)
Merge a new metadata set into this piece of metadata.
|
boolean |
storedInArtifactVersionDirectory()
Whether this metadata should be stored alongside the artifact.
|
void |
storeInLocalRepository(ArtifactRepository localRepository,
ArtifactRepository remoteRepository)
Store the metadata in the local repository.
|
String |
toString() |
extendedToString, getArtifactId, getGroupId, storedInGroupDirectoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitextendedToString, getArtifactId, getGroupId, storedInGroupDirectorypublic ProjectArtifactMetadata(Artifact artifact)
public File getFile()
public String getRemoteFilename()
ArtifactMetadatapublic String getLocalFilename(ArtifactRepository repository)
ArtifactMetadatarepository - the remote repository it came frompublic void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataStoreException
ArtifactMetadatalocalRepository - the local repositoryremoteRepository - the remote repository it came from
TODO this should only be needed on the repository metadataRepositoryMetadataStoreExceptionpublic boolean storedInArtifactVersionDirectory()
ArtifactMetadatapublic String getBaseVersion()
public Object getKey()
public void merge(ArtifactMetadata metadata)
public void merge(ArtifactMetadata metadata)
ArtifactMetadatametadata - the new metadata
TODO this should only be needed on the repository metadataCopyright © 2001–2018 The Apache Software Foundation. All rights reserved.