Class ProjectArtifactMetadata
- java.lang.Object
-
- org.apache.maven.artifact.metadata.AbstractArtifactMetadata
-
- org.apache.maven.project.artifact.ProjectArtifactMetadata
-
- All Implemented Interfaces:
ArtifactMetadata
public class ProjectArtifactMetadata extends AbstractArtifactMetadata
Attach a POM to an artifact.- Version:
- $Id: ProjectArtifactMetadata.java 745955 2009-02-19 18:39:09Z jdcasey $
- Author:
- Brett Porter
-
-
Field Summary
-
Fields inherited from class org.apache.maven.artifact.metadata.AbstractArtifactMetadata
artifact
-
-
Constructor Summary
Constructors Constructor Description ProjectArtifactMetadata(Artifact artifact)ProjectArtifactMetadata(Artifact artifact, File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseVersion()FilegetFile()ObjectgetKey()StringgetLocalFilename(ArtifactRepository repository)Get the filename of this metadata on the local repository.StringgetRemoteFilename()Get the filename of this metadata on the remote repository.booleanisVersionExpressionsResolved()voidmerge(ArtifactMetadata metadata)Merge a new metadata set into this piece of metadata.voidsetFile(File file)voidsetVersionExpressionsResolved(boolean versionExpressionsResolved)booleanstoredInArtifactVersionDirectory()Whether this metadata should be stored alongside the artifact.voidstoreInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository)Store the metadata in the local repository.StringtoString()-
Methods inherited from class org.apache.maven.artifact.metadata.AbstractArtifactMetadata
extendedToString, getArtifactId, getGroupId, storedInGroupDirectory
-
-
-
-
Method Detail
-
getRemoteFilename
public String getRemoteFilename()
Description copied from interface:ArtifactMetadataGet the filename of this metadata on the remote repository.- Returns:
- the filename
-
getLocalFilename
public String getLocalFilename(ArtifactRepository repository)
Description copied from interface:ArtifactMetadataGet the filename of this metadata on the local repository.- Parameters:
repository- the remote repository it came from- Returns:
- the filename
-
storeInLocalRepository
public void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataStoreException
Description copied from interface:ArtifactMetadataStore the metadata in the local repository.- Parameters:
localRepository- the local repositoryremoteRepository- the remote repository it came from- Throws:
RepositoryMetadataStoreException
-
storedInArtifactVersionDirectory
public boolean storedInArtifactVersionDirectory()
Description copied from interface:ArtifactMetadataWhether this metadata should be stored alongside the artifact.
-
getBaseVersion
public String getBaseVersion()
-
getKey
public Object getKey()
-
merge
public void merge(ArtifactMetadata metadata)
Description copied from interface:ArtifactMetadataMerge a new metadata set into this piece of metadata.- Parameters:
metadata- the new metadata
-
isVersionExpressionsResolved
public boolean isVersionExpressionsResolved()
-
setVersionExpressionsResolved
public void setVersionExpressionsResolved(boolean versionExpressionsResolved)
-
setFile
public void setFile(File file)
-
getFile
public File getFile()
-
-