Package org.apache.maven.repository
Interface MirrorSelector
- All Known Implementing Classes:
DefaultMirrorSelector
public interface MirrorSelector
Handles the selection of mirrors for repositories.
- Author:
- Benjamin Bentmann
-
Method Summary
Modifier and TypeMethodDescriptiongetMirror(ArtifactRepository repository, List<Mirror> mirrors) Determines the mirror for the specified repository.
-
Method Details
-
getMirror
Determines the mirror for the specified repository.- Parameters:
repository- The repository to determine the mirror for, must not benull.mirrors- The available mirrors, may benull.- Returns:
- The mirror specification for the repository or
nullif no mirror matched.
-