|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.repository.legacy.metadata.AbstractArtifactMetadata org.apache.maven.artifact.metadata.AbstractArtifactMetadata org.apache.maven.project.artifact.ProjectArtifactMetadata
public class ProjectArtifactMetadata
Attach a POM to an artifact.
Field Summary |
---|
Fields inherited from class org.apache.maven.repository.legacy.metadata.AbstractArtifactMetadata |
---|
artifact |
Constructor Summary | |
---|---|
ProjectArtifactMetadata(Artifact artifact)
|
|
ProjectArtifactMetadata(Artifact artifact,
File file)
|
Method Summary | |
---|---|
String |
getBaseVersion()
|
File |
getFile()
|
Object |
getKey()
|
String |
getLocalFilename(ArtifactRepository repository)
Get the filename of this metadata on the local repository. |
String |
getRemoteFilename()
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 |
storedInArtifactVersionDirectory()
Whether this metadata should be stored alongside the artifact. |
void |
storeInLocalRepository(ArtifactRepository localRepository,
ArtifactRepository remoteRepository)
Store the metadata in the local repository. |
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 |
Constructor Detail |
---|
public ProjectArtifactMetadata(Artifact artifact)
public ProjectArtifactMetadata(Artifact artifact, File file)
Method Detail |
---|
public File getFile()
public String getRemoteFilename()
ArtifactMetadata
public String getLocalFilename(ArtifactRepository repository)
ArtifactMetadata
repository
- the remote repository it came from
public void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataStoreException
ArtifactMetadata
localRepository
- the local repositoryremoteRepository
- the remote repository it came from
RepositoryMetadataStoreException
public String toString()
toString
in class Object
public boolean storedInArtifactVersionDirectory()
ArtifactMetadata
public String getBaseVersion()
public Object getKey()
public void merge(ArtifactMetadata metadata)
public void merge(ArtifactMetadata metadata)
ArtifactMetadata
metadata
- the new metadata
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |