Class ProjectArtifactMetadata

    • 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
      • 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. TODO this should only be needed on the repository metadata ArtifactMetadata
        Parameters:
        metadata - the new metadata