Interface RemoteRepositoryFilter


  • public interface RemoteRepositoryFilter
    Remote repository filter that decides should the given artifact or metadata be accepted (for further processing) from remote repository or not.
    Since:
    1.9.0
    • Method Detail

      • acceptArtifact

        RemoteRepositoryFilter.Result acceptArtifact​(org.eclipse.aether.repository.RemoteRepository remoteRepository,
                                                     org.eclipse.aether.artifact.Artifact artifact)
        Decides should artifact be accepted from given remote repository.
        Parameters:
        remoteRepository - The remote repository, not null.
        artifact - The artifact, not null.
        Returns:
        the result, never null.
      • acceptMetadata

        RemoteRepositoryFilter.Result acceptMetadata​(org.eclipse.aether.repository.RemoteRepository remoteRepository,
                                                     org.eclipse.aether.metadata.Metadata metadata)
        Decides should metadata be accepted from given remote repository.
        Parameters:
        remoteRepository - The remote repository, not null.
        metadata - The artifact, not null.
        Returns:
        the result, never null.