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.
|
boolean |
isVersionExpressionsResolved() |
void |
merge(ArtifactMetadata metadata)
Merge a new metadata set into this piece of metadata.
|
void |
setFile(File file) |
void |
setVersionExpressionsResolved(boolean versionExpressionsResolved) |
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, storedInGroupDirectory
public ProjectArtifactMetadata(Artifact artifact)
public String getRemoteFilename()
ArtifactMetadata
public String getLocalFilename(ArtifactRepository repository)
ArtifactMetadata
repository
- the remote repository it came frompublic void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataStoreException
ArtifactMetadata
localRepository
- the local repositoryremoteRepository
- the remote repository it came fromRepositoryMetadataStoreException
public boolean storedInArtifactVersionDirectory()
ArtifactMetadata
public String getBaseVersion()
public Object getKey()
public void merge(ArtifactMetadata metadata)
ArtifactMetadata
metadata
- the new metadatapublic boolean isVersionExpressionsResolved()
public void setVersionExpressionsResolved(boolean versionExpressionsResolved)
public void setFile(File file)
public File getFile()
Copyright © 2001–2016 The Apache Software Foundation. All rights reserved.