|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.artifact.metadata.AbstractArtifactMetadata |
---|
artifact |
Constructor Summary | |
---|---|
ProjectArtifactMetadata(Artifact artifact)
|
|
ProjectArtifactMetadata(Artifact artifact,
java.io.File file)
|
Method Summary | |
---|---|
java.lang.String |
getBaseVersion()
|
java.io.File |
getFile()
|
java.lang.Object |
getKey()
|
java.lang.String |
getLocalFilename(ArtifactRepository repository)
Get the filename of this metadata on the local repository. |
java.lang.String |
getRemoteFilename()
Get the filename of this metadata on the remote repository. |
boolean |
isVersionExpressionsResolved()
|
void |
merge(ArtifactMetadata metadata)
Merge a new metadata set into this piece of metadata. |
void |
setFile(java.io.File file)
|
void |
setVersionExpressionsResolved(boolean versionExpressionsResolved)
|
boolean |
storedInArtifactVersionDirectory()
Whether this metadata should be stored alongside the artifact. |
void |
storeInLocalRepository(ArtifactRepository localRepository,
ArtifactRepository remoteRepository)
Store the metadata in the local repository. |
java.lang.String |
toString()
|
Methods inherited from class org.apache.maven.artifact.metadata.AbstractArtifactMetadata |
---|
extendedToString, getArtifactId, getGroupId, storedInGroupDirectory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProjectArtifactMetadata(Artifact artifact)
public ProjectArtifactMetadata(Artifact artifact, java.io.File file)
Method Detail |
---|
public java.lang.String getRemoteFilename()
ArtifactMetadata
public java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
public boolean storedInArtifactVersionDirectory()
ArtifactMetadata
public java.lang.String getBaseVersion()
public java.lang.Object getKey()
public void merge(ArtifactMetadata metadata)
ArtifactMetadata
metadata
- the new metadatapublic boolean isVersionExpressionsResolved()
public void setVersionExpressionsResolved(boolean versionExpressionsResolved)
public void setFile(java.io.File file)
public java.io.File getFile()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |