Interface ArtifactMetadata

  • All Known Subinterfaces:
    ArtifactMetadata

    public interface ArtifactMetadata
    Contains metadata about an artifact, and methods to retrieve/store it from an artifact repository. TODO merge with artifactmetadatasource TODO retrieval exception not appropriate for store
    Author:
    Brett Porter
    • Method Detail

      • storedInArtifactVersionDirectory

        boolean storedInArtifactVersionDirectory()
        Whether this metadata should be stored alongside the artifact.
      • storedInGroupDirectory

        boolean storedInGroupDirectory()
        Whether this metadata should be stored alongside the group.
      • getGroupId

        String getGroupId()
      • getArtifactId

        String getArtifactId()
      • getBaseVersion

        String getBaseVersion()
      • getLocalFilename

        String getLocalFilename​(ArtifactRepository repository)
        Get the filename of this metadata on the local repository.
        Parameters:
        repository - the remote repository it came from
        Returns:
        the filename
      • getRemoteFilename

        String getRemoteFilename()
        Get the filename of this metadata on the remote repository.
        Returns:
        the filename
      • merge

        void merge​(ArtifactMetadata metadata)
        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
      • extendedToString

        String extendedToString()