Class ProjectArtifactMetadata
java.lang.Object
org.apache.maven.artifact.metadata.AbstractArtifactMetadata
org.apache.maven.project.artifact.ProjectArtifactMetadata
- All Implemented Interfaces:
ArtifactMetadata
Attach a POM to an artifact.
- Version:
- $Id: ProjectArtifactMetadata.java 745955 2009-02-19 18:39:09Z jdcasey $
-
Field Summary
FieldsFields inherited from class org.apache.maven.artifact.metadata.AbstractArtifactMetadata
artifact
-
Constructor Summary
ConstructorsConstructorDescriptionProjectArtifactMetadata
(Artifact artifact) ProjectArtifactMetadata
(Artifact artifact, File file) -
Method Summary
Modifier and TypeMethodDescriptiongetFile()
private String
getKey()
getLocalFilename
(ArtifactRepository repository) Get the filename of this metadata on the local repository.Get the filename of this metadata on the remote repository.boolean
void
merge
(ArtifactMetadata metadata) Merge a new metadata set into this piece of metadata.void
void
setVersionExpressionsResolved
(boolean versionExpressionsResolved) boolean
Whether this metadata should be stored alongside the artifact.void
storeInLocalRepository
(ArtifactRepository localRepository, ArtifactRepository remoteRepository) Store the metadata in the local repository.toString()
Methods inherited from class org.apache.maven.artifact.metadata.AbstractArtifactMetadata
extendedToString, getArtifactId, getGroupId, storedInGroupDirectory
-
Field Details
-
originalFile
-
transformedFile
-
versionExpressionsResolved
private boolean versionExpressionsResolved
-
-
Constructor Details
-
ProjectArtifactMetadata
-
ProjectArtifactMetadata
-
-
Method Details
-
getRemoteFilename
Description copied from interface:ArtifactMetadata
Get the filename of this metadata on the remote repository.- Returns:
- the filename
-
getLocalFilename
Description copied from interface:ArtifactMetadata
Get the filename of this metadata on the local repository.- Parameters:
repository
- the remote repository it came from- Returns:
- the filename
-
getFilename
-
storeInLocalRepository
public void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataStoreException Description copied from interface:ArtifactMetadata
Store the metadata in the local repository.- Parameters:
localRepository
- the local repositoryremoteRepository
- the remote repository it came from- Throws:
RepositoryMetadataStoreException
-
toString
-
storedInArtifactVersionDirectory
public boolean storedInArtifactVersionDirectory()Description copied from interface:ArtifactMetadata
Whether this metadata should be stored alongside the artifact. -
getBaseVersion
-
getKey
-
merge
Description copied from interface:ArtifactMetadata
Merge 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
-
getFile
-