org.apache.maven.project.artifact
Class ProjectArtifactMetadata

java.lang.Object
  extended by org.apache.maven.repository.legacy.metadata.AbstractArtifactMetadata
      extended by org.apache.maven.artifact.metadata.AbstractArtifactMetadata
          extended by org.apache.maven.project.artifact.ProjectArtifactMetadata
All Implemented Interfaces:
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
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

ProjectArtifactMetadata

public ProjectArtifactMetadata(Artifact artifact)

ProjectArtifactMetadata

public ProjectArtifactMetadata(Artifact artifact,
                               File file)
Method Detail

getFile

public File getFile()

getRemoteFilename

public String getRemoteFilename()
Description copied from interface: ArtifactMetadata
Get the filename of this metadata on the remote repository.

Returns:
the filename

getLocalFilename

public String getLocalFilename(ArtifactRepository repository)
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.

Parameters:
localRepository - the local repository
remoteRepository - the remote repository it came from
Throws:
RepositoryMetadataStoreException

toString

public String toString()
Overrides:
toString in class Object

storedInArtifactVersionDirectory

public boolean storedInArtifactVersionDirectory()
Description copied from interface: ArtifactMetadata
Whether this metadata should be stored alongside the artifact.


getBaseVersion

public String getBaseVersion()

getKey

public Object getKey()

merge

public void merge(ArtifactMetadata metadata)

merge

public void merge(ArtifactMetadata metadata)
Description copied from interface: ArtifactMetadata
Merge a new metadata set into this piece of metadata.

Parameters:
metadata - the new metadata


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.