Class ProjectArtifactMetadata

java.lang.Object
org.apache.maven.artifact.metadata.AbstractArtifactMetadata
org.apache.maven.project.artifact.ProjectArtifactMetadata
All Implemented Interfaces:
ArtifactMetadata

public class ProjectArtifactMetadata extends AbstractArtifactMetadata
Attach a POM to an artifact.
Version:
$Id: ProjectArtifactMetadata.java 745955 2009-02-19 18:39:09Z jdcasey $
  • Field Details

    • originalFile

      private File originalFile
    • transformedFile

      private File transformedFile
    • versionExpressionsResolved

      private boolean versionExpressionsResolved
  • Constructor Details

    • ProjectArtifactMetadata

      public ProjectArtifactMetadata(Artifact artifact)
    • ProjectArtifactMetadata

      public ProjectArtifactMetadata(Artifact artifact, File file)
  • Method Details

    • 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
    • getFilename

      private String getFilename()
    • 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)
      Description copied from interface: ArtifactMetadata
      Merge a new metadata set into this piece of metadata.
      Parameters:
      metadata - the new metadata
    • isVersionExpressionsResolved

      public boolean isVersionExpressionsResolved()
    • setVersionExpressionsResolved

      public void setVersionExpressionsResolved(boolean versionExpressionsResolved)
    • setFile

      public void setFile(File file)
    • getFile

      public File getFile()