Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,890 for Mirror (0.07 sec)

  1. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/DefaultMirrorSelector.java

            String repoId = repository.getId();
    
            if (repoId != null && mirrors != null) {
                for (Mirror mirror : mirrors) {
                    if (repoId.equals(mirror.getMirrorOf()) && matchesLayout(repository, mirror)) {
                        return mirror;
                    }
                }
    
                for (Mirror mirror : mirrors) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java

        public static 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/main/java/org/apache/maven/cli/configuration/SettingsXmlConfigurationProcessor.java

            }
    
            // <mirrors>
            //   <mirror>
            //     <id>nexus</id>
            //     <mirrorOf>*</mirrorOf>
            //     <url>http://repository.sonatype.org/content/groups/public</url>
            //   </mirror>
            // </mirrors>
    
            for (Mirror mirror : settings.getMirrors()) {
                request.addMirror(mirror);
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

            for (Mirror mirror : request.getMirrors()) {
                mirrorSelector.add(
                        mirror.getId(),
                        mirror.getUrl(),
                        mirror.getLayout(),
                        false,
                        mirror.isBlocked(),
                        mirror.getMirrorOf(),
                        mirror.getMirrorOfLayouts());
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/aether/LegacyRepositorySystemSessionExtender.java

        }
    
        private void injectMirror(List<ArtifactRepository> repositories, List<Mirror> mirrors) {
            if (repositories != null && mirrors != null) {
                for (ArtifactRepository repository : repositories) {
                    Mirror mirror = MavenRepositorySystem.getMirror(repository, mirrors);
                    injectMirror(repository, mirror);
                }
            }
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. compat/maven-settings-builder/src/test/java/org/apache/maven/settings/validation/DefaultSettingsValidatorTest.java

            Settings settings = new Settings();
            Mirror mirror = new Mirror();
            mirror.setId("local");
            settings.addMirror(mirror);
            mirror = new Mirror();
            mirror.setId("illegal\\:/chars");
            mirror.setUrl("http://void");
            mirror.setMirrorOf("void");
            settings.addMirror(mirror);
    
            SimpleProblemCollector problems = new SimpleProblemCollector();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top