Interface Repository

All Known Subinterfaces:
LocalRepository, RemoteRepository
All Known Implementing Classes:
DefaultLocalRepository, DefaultRemoteRepository

@Experimental @Immutable public interface Repository
A repository holds artifacts.
Since:
4.0.0
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The reserved id for Maven Central
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the identifier of this repository.
    Gets the type of the repository, for example "default".
  • Field Details

  • Method Details

    • getId

      @Nonnull String getId()
      Gets the identifier of this repository.
      Returns:
      the (case-sensitive) identifier, never null
    • getType

      @Nonnull String getType()
      Gets the type of the repository, for example "default".
      Returns:
      the (case-sensitive) type of the repository, never null