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
public class ProjectArtifactMetadata extends AbstractArtifactMetadata
Attach a POM to an artifact.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.Filefile-
Fields inherited from class org.apache.maven.repository.legacy.metadata.AbstractArtifactMetadata
artifact
-
-
Constructor Summary
Constructors Constructor Description ProjectArtifactMetadata(Artifact artifact)ProjectArtifactMetadata(Artifact artifact, java.io.File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBaseVersion()java.io.FilegetFile()private java.lang.StringgetFilename()java.lang.ObjectgetKey()java.lang.StringgetLocalFilename(ArtifactRepository repository)Get the filename of this metadata on the local repository.java.lang.StringgetRemoteFilename()Get the filename of this metadata on the remote repository.voidmerge(ArtifactMetadata metadata)voidmerge(ArtifactMetadata metadata)Merge a new metadata set into this piece of metadata.booleanstoredInArtifactVersionDirectory()Whether this metadata should be stored alongside the artifact.voidstoreInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository)Store the metadata in the local repository.java.lang.StringtoString()-
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
-
-
-
-
Method Detail
-
getFile
public java.io.File getFile()
-
getRemoteFilename
public java.lang.String getRemoteFilename()
Description copied from interface:ArtifactMetadataGet the filename of this metadata on the remote repository.- Returns:
- the filename
-
getLocalFilename
public java.lang.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
-
getFilename
private java.lang.String getFilename()
-
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 TODO this should only be needed on the repository metadata- Throws:
RepositoryMetadataStoreException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
storedInArtifactVersionDirectory
public boolean storedInArtifactVersionDirectory()
Description copied from interface:ArtifactMetadataWhether this metadata should be stored alongside the artifact.
-
getBaseVersion
public java.lang.String getBaseVersion()
-
getKey
public java.lang.Object getKey()
-
merge
public void merge(ArtifactMetadata metadata)
-
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 TODO this should only be needed on the repository metadata
-
-