public class ProjectArtifactMetadata extends AbstractArtifactMetadata
Modifier and Type | Field and Description |
---|---|
private java.io.File |
file |
artifact
Constructor and Description |
---|
ProjectArtifactMetadata(Artifact artifact) |
ProjectArtifactMetadata(Artifact artifact,
java.io.File file) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseVersion() |
java.io.File |
getFile() |
private java.lang.String |
getFilename() |
java.lang.Object |
getKey() |
java.lang.String |
getLocalFilename(ArtifactRepository repository)
Get the filename of this metadata on the local repository.
|
java.lang.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.
|
java.lang.String |
toString() |
extendedToString, getArtifactId, getGroupId, storedInGroupDirectory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
extendedToString, getArtifactId, getGroupId, storedInGroupDirectory
public ProjectArtifactMetadata(Artifact artifact)
public ProjectArtifactMetadata(Artifact artifact, java.io.File file)
public java.io.File getFile()
public java.lang.String getRemoteFilename()
ArtifactMetadata
public java.lang.String getLocalFilename(ArtifactRepository repository)
ArtifactMetadata
repository
- the remote repository it came fromprivate java.lang.String getFilename()
public void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataStoreException
ArtifactMetadata
localRepository
- the local repositoryremoteRepository
- the remote repository it came from
TODO this should only be needed on the repository metadataRepositoryMetadataStoreException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean storedInArtifactVersionDirectory()
ArtifactMetadata
public java.lang.String getBaseVersion()
public java.lang.Object getKey()
public void merge(ArtifactMetadata metadata)
public void merge(ArtifactMetadata metadata)
ArtifactMetadata
metadata
- the new metadata
TODO this should only be needed on the repository metadata