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.- Author:
- Brett Porter
-
-
Field Summary
-
Fields inherited from class org.apache.maven.repository.legacy.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 String
getBaseVersion()
File
getFile()
Object
getKey()
String
getLocalFilename(ArtifactRepository repository)
String
getRemoteFilename()
void
merge(ArtifactMetadata metadata)
void
merge(ArtifactMetadata metadata)
boolean
storedInArtifactVersionDirectory()
void
storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository)
String
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
-
-
-
-
Method Detail
-
getFile
public File getFile()
-
getRemoteFilename
public String getRemoteFilename()
-
getLocalFilename
public String getLocalFilename(ArtifactRepository repository)
-
storeInLocalRepository
public void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataStoreException
- Throws:
RepositoryMetadataStoreException
-
storedInArtifactVersionDirectory
public boolean storedInArtifactVersionDirectory()
-
getBaseVersion
public String getBaseVersion()
-
getKey
public Object getKey()
-
merge
public void merge(ArtifactMetadata metadata)
-
merge
public void merge(ArtifactMetadata metadata)
-
-