Class ProjectArtifactMetadata
java.lang.Object
org.apache.maven.repository.legacy.metadata.AbstractArtifactMetadata
org.apache.maven.artifact.metadata.AbstractArtifactMetadata
org.apache.maven.project.artifact.ProjectArtifactMetadata
- All Implemented Interfaces:
ArtifactMetadata
,ArtifactMetadata
Attach a POM to an artifact.
- Author:
- Brett Porter
-
Field Summary
Fields inherited from class org.apache.maven.repository.legacy.metadata.AbstractArtifactMetadata
artifact
-
Constructor Summary
ConstructorDescriptionProjectArtifactMetadata
(Artifact artifact) ProjectArtifactMetadata
(Artifact artifact, File file) -
Method Summary
Modifier and TypeMethodDescriptiongetFile()
getKey()
getLocalFilename
(ArtifactRepository repository) Get the filename of this metadata on the local repository.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
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.repository.legacy.metadata.AbstractArtifactMetadata
extendedToString, getArtifactId, getGroupId, storedInGroupDirectory
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.maven.repository.legacy.metadata.ArtifactMetadata
extendedToString, getArtifactId, getGroupId, storedInGroupDirectory
-
Constructor Details
-
ProjectArtifactMetadata
-
ProjectArtifactMetadata
-
-
Method Details
-
getFile
-
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
-
storeInLocalRepository
public void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataStoreException Description copied from interface:ArtifactMetadata
Store the metadata in the local repository. TODO this should only be needed on the repository metadataArtifactMetadata
- Parameters:
localRepository
- the local repositoryremoteRepository
- the remote repository it came from- Throws:
RepositoryMetadataStoreException
- in case of issue
-
toString
-
storedInArtifactVersionDirectory
public boolean storedInArtifactVersionDirectory()Description copied from interface:ArtifactMetadata
Whether this metadata should be stored alongside the artifact.- Returns:
- whether this metadata should be stored alongside the artifact
-
getBaseVersion
-
getKey
-
merge
-
merge
Description copied from interface:ArtifactMetadata
Merge a new metadata set into this piece of metadata. TODO this should only be needed on the repository metadataArtifactMetadata
- Parameters:
metadata
- the new metadata
-