Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 251 for mirrors (0.06 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/repository/MirrorProcessorTest.java

            Mirror mirrorB = newMirror("b", "b", "http://b");
            Mirror mirrorC = newMirror("c", "d,e", "http://de");
            Mirror mirrorC2 = newMirror("c", "*", "http://wildcard");
            Mirror mirrorC3 = newMirror("c", "e,f", "http://ef");
    
            List<Mirror> mirrors = Arrays.asList(mirrorA2, mirrorA, mirrorA3, mirrorB, mirrorC, mirrorC2, mirrorC3);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  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/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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. apache-maven/src/assembly/maven/conf/settings.xml

         |
        <mirror>
          <id>mirrorId</id>
          <mirrorOf>repositoryId</mirrorOf>
          <name>Human Readable Name for this Mirror.</name>
          <url>http://my.repository.com/repo/path</url>
        </mirror>
        -->
        <mirror>
          <id>maven-default-http-blocker</id>
          <mirrorOf>external:http:*</mirrorOf>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 24 15:53:41 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java

        }
    
        @Override
        public List<Mirror> getMirrors() {
            if (mirrors == null) {
                mirrors = new ArrayList<>();
            }
            return mirrors;
        }
    
        @Override
        public MavenExecutionRequest setMirrors(List<Mirror> mirrors) {
            if (mirrors != null) {
                this.mirrors = new ArrayList<>(mirrors);
            } else {
                this.mirrors = null;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.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. 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)
Back to top