- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,105 for Mirror (0.74 sec)
-
compat/maven-compat/src/main/java/org/apache/maven/repository/MirrorSelector.java
import org.apache.maven.settings.Mirror; /** * Handles the selection of mirrors for repositories. * */ @Deprecated public interface MirrorSelector { /** * Determines the mirror for the specified repository. * * @param repository The repository to determine the mirror for, must not be {@code null}. * @param mirrors The available mirrors, may be {@code null}.
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.5K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/MirrorProcessorTest.java
} @Test void testMirrorWildcardLookup() { Mirror mirrorA = newMirror("a", "a", "http://a"); Mirror mirrorB = newMirror("b", "b", "http://b"); Mirror mirrorC = newMirror("c", "*", "http://wildcard"); List<Mirror> mirrors = Arrays.asList(mirrorA, mirrorB, mirrorC); assertSame(mirrorA, mirrorSelector.getMirror(getRepo("a", "http://a.a"), mirrors));
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 10.7K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/DefaultMirrorSelector.java
@Override public Mirror getMirror(ArtifactRepository repository, List<Mirror> mirrors) { String repoId = repository.getId(); if (repoId != null && mirrors != null) { for (Mirror mirror : mirrors) { if (repoId.equals(mirror.getMirrorOf()) && matchesLayout(repository, mirror)) { return mirror; } }
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 8K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java
@Deprecated @Override public ArtifactRepository getMirrorRepository(ArtifactRepository repository) { Mirror mirror = mirrorSelector.getMirror( repository, legacySupport.getSession().getSettings().getMirrors()); if (mirror != null) { String id = mirror.getId(); if (id == null) { // TODO this should be illegal in settings.xml
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 6.5K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java
if (repo != null) { Mirror mirror = new Mirror(); mirror.setId(repo.getId()); mirror.setUrl(repo.getUrl()); mirror.setLayout(repo.getContentType()); mirror.setBlocked(repo.isBlocked()); return mirror; } } } return null; }
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 31.2K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/RepositorySystem.java
/** * Determines the mirror for the specified repository. * * @param repository The repository to determine the mirror for, must not be {@code null}. * @param mirrors The available mirrors, may be {@code null}. * @return The mirror specification for the repository or {@code null} if no mirror matched. */ Mirror getMirror(ArtifactRepository repository, List<Mirror> mirrors);
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 7.7K bytes - Viewed (0) -
api/maven-api-settings/src/main/mdo/settings.mdo
} @Deprecated public Mirror getMirrorOf(String repositoryId) { Mirror match = null; java.util.List<Mirror> mirrors = getMirrors(); if (mirrors != null && repositoryId != null) { for (Mirror mirror : mirrors) { if (repositoryId.equals(mirror.getMirrorOf())) { match = mirror; break; }
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Sun May 18 09:15:56 UTC 2025 - 33.8K bytes - Viewed (0) -
apache-maven/src/assembly/maven/conf/settings.xml
| That repository definition will have a unique id, so we can create a mirror reference for that | repository, to be used as an alternate download site. The mirror site will be the preferred | server for that repository. |--> <mirrors> <!-- mirror | Specifies a repository mirror site to use instead of a given repository. The repository that
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Jan 22 07:44:50 UTC 2025 - 11.1K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionRequest.java
return servers; } public ArtifactResolutionRequest setMirrors(List<Mirror> mirrors) { this.mirrors = mirrors; return this; } public List<Mirror> getMirrors() { if (mirrors == null) { mirrors = new ArrayList<>(); } return mirrors; } public ArtifactResolutionRequest setProxies(List<Proxy> proxies) {
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 8.3K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/TestRepositorySystem.java
} @Override public Mirror getMirror(ArtifactRepository repository, List<Mirror> mirrors) { return null; } @Override public void injectAuthentication(List<ArtifactRepository> repositories, List<Server> servers) {} @Override public void injectMirror(List<ArtifactRepository> repositories, List<Mirror> mirrors) {} @Override
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jan 10 08:42:00 UTC 2025 - 12K bytes - Viewed (0)