Interface RemoteRepositoryManager

  • All Known Implementing Classes:
    DefaultRemoteRepositoryManager

    public interface RemoteRepositoryManager
    Helps dealing with remote repository definitions.
    Restriction:
    This interface is not intended to be extended by clients.
    Restriction:
    This interface is not intended to be implemented by clients.
    Provisional:
    This type is provisional and can be changed, moved or removed without prior notice.
    • Method Detail

      • getPolicy

        RepositoryPolicy getPolicy​(RepositorySystemSession session,
                                   RemoteRepository repository,
                                   boolean releases,
                                   boolean snapshots)
        Gets the effective repository policy for the specified remote repository by merging the applicable snapshot/release policy of the repository with global settings from the supplied session.
        Parameters:
        session - The repository session during which the repository will be accessed, must not be null.
        repository - The remote repository to determine the effective policy for, must not be null.
        releases - true if the policy for release artifacts needs to be considered, false if not.
        snapshots - true if the policy for snapshot artifacts needs to be considered, false if not.
        Returns:
        The effective repository policy, never null.
        See Also:
        RepositorySystemSession.getChecksumPolicy(), RepositorySystemSession.getUpdatePolicy()