Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for getMirror (0.11 sec)

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

            assertSame(mirrorA, mirrorSelector.getMirror(getRepo("a", "http://a.a"), mirrors));
    
            assertSame(mirrorB, mirrorSelector.getMirror(getRepo("b", "http://a.a"), mirrors));
    
            assertSame(mirrorC2, mirrorSelector.getMirror(getRepo("c", "http://c.c"), mirrors));
    
            assertSame(mirrorC, mirrorSelector.getMirror(getRepo("d", "http://d"), 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)
  2. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

                } else {
                    effectivePolicy.merge(policy);
                }
            }
    
            return effectivePolicy;
        }
    
        public Mirror getMirror(ArtifactRepository repository, List<Mirror> mirrors) {
            return mirrorSelector.getMirror(repository, mirrors);
        }
    
        public void injectMirror(List<ArtifactRepository> repositories, List<Mirror> mirrors) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java

            if (repositories != null && mirrors != null) {
                for (ArtifactRepository repository : repositories) {
                    Mirror mirror = getMirror(repository, mirrors);
                    injectMirror(repository, mirror);
                }
            }
        }
    
        private Mirror getMirror(RepositorySystemSession session, ArtifactRepository repository) {
            if (session != null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/repository/TestRepositorySystem.java

        }
    
        @Override
        public List<ArtifactRepository> getEffectiveRepositories(List<ArtifactRepository> repositories) {
            return repositories;
        }
    
        @Override
        public Mirror getMirror(ArtifactRepository repository, List<Mirror> mirrors) {
            return null;
        }
    
        @Override
        public void injectAuthentication(List<ArtifactRepository> repositories, List<Server> servers) {}
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/ztunnelserver.go

    	}
    
    	fd := int(netns.Fd())
    	resp, err := latestConn.send(ctx, data, &fd)
    	if err != nil {
    		return err
    	}
    
    	if resp.GetAck().GetError() != "" {
    		log.Errorf("failed to add workload: %s", resp.GetAck().GetError())
    		return fmt.Errorf("got ack error: %s", resp.GetAck().GetError())
    	}
    	return nil
    }
    
    // TODO ctx is unused here
    // nolint: unparam
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Jul 29 16:08:35 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

            String key = getMetadataKey(repository, file);
    
            return readLastUpdated(touchfile, key);
        }
    
        @Override
        public String getError(Artifact artifact, ArtifactRepository repository) {
            File touchFile = getTouchfile(artifact);
            return getError(touchFile, getRepositoryKey(repository));
        }
    
        @Override
        public void touch(Artifact artifact, ArtifactRepository repository, String error) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java

            Objects.requireNonNull(mirror, "mirror cannot be null");
    
            for (Mirror p : getMirrors()) {
                if (p.getId() != null && p.getId().equals(mirror.getId())) {
                    return this;
                }
            }
    
            getMirrors().add(mirror);
    
            return this;
        }
    
        @Override
        public List<Profile> getProfiles() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/configuration/SettingsXmlConfigurationProcessor.java

            //     <mirrorOf>*</mirrorOf>
            //     <url>http://repository.sonatype.org/content/groups/public</url>
            //   </mirror>
            // </mirrors>
    
            for (Mirror mirror : settings.getMirrors()) {
                request.addMirror(mirror);
            }
    
            for (Repository remoteRepository : settings.getRepositories()) {
                try {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

            injectSession1(request, session);
    
            if (session != null) {
                request.setServers(session.getRequest().getServers());
                request.setMirrors(session.getRequest().getMirrors());
                request.setProxies(session.getRequest().getProxies());
            }
        }
    
        public void resolve(
                Artifact artifact,
                List<ArtifactRepository> remoteRepositories,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java

                request.setForceUpdate(session.getRequest().isUpdateSnapshots());
                request.setServers(session.getRequest().getServers());
                request.setMirrors(session.getRequest().getMirrors());
                request.setProxies(session.getRequest().getProxies());
            }
        }
    
        @SuppressWarnings("checkstyle:parameternumber")
        public ArtifactResolutionResult collect(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 36.7K bytes
    - Viewed (0)
Back to top