Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for injectAuthentication (0.24 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/internal/aether/LegacyRepositorySystemSessionExtender.java

            injectAuthentication(authenticationSelector, mavenExecutionRequest.getRemoteRepositories());
    
            injectMirror(mavenExecutionRequest.getPluginArtifactRepositories(), mavenExecutionRequest.getMirrors());
            injectProxy(proxySelector, mavenExecutionRequest.getPluginArtifactRepositories());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/repository/RepositorySystem.java

         */
        void injectAuthentication(List<ArtifactRepository> repositories, List<Server> servers);
    
        void injectMirror(RepositorySystemSession session, List<ArtifactRepository> repositories);
    
        void injectProxy(RepositorySystemSession session, List<ArtifactRepository> repositories);
    
        void injectAuthentication(RepositorySystemSession session, List<ArtifactRepository> repositories);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/project/ProjectUtils.java

            if (session != null) {
                repositorySystem.injectMirror(session, Arrays.asList(repository));
                repositorySystem.injectProxy(session, Arrays.asList(repository));
                repositorySystem.injectAuthentication(session, Arrays.asList(repository));
            }
    
            return repository;
        }
    
        private static RepositorySystem rs(PlexusContainer c) {
            try {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/LegacyRepositorySystemTest.java

            server.setPassword("abc123");
    
            ArtifactRepository repository =
                    repositorySystem.createArtifactRepository("repository", "http://foo", null, null, null);
            repositorySystem.injectAuthentication(Arrays.asList(repository), Arrays.asList(server));
            Authentication authentication = repository.getAuthentication();
            assertNotNull(authentication);
            assertEquals("jason", authentication.getUsername());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. compat/maven-compat/src/test/java/org/apache/maven/repository/TestRepositorySystem.java

            return repositories;
        }
    
        @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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepositoryFactory.java

                if (mirrors) {
                    repositorySystem.injectMirror(session, repositories);
                }
    
                repositorySystem.injectProxy(session, repositories);
    
                repositorySystem.injectAuthentication(session, repositories);
            }
    
            return repository;
        }
    
        private boolean isLocalRepository(ArtifactRepository repository) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java

                            repositorySystem.injectProxy(request.getRepositorySession(), Arrays.asList(repo));
                            repositorySystem.injectAuthentication(request.getRepositorySession(), Arrays.asList(repo));
                            repos.add(repo);
                        } catch (InvalidRepositoryException e) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

                }
            }
            mavenRepositorySystem.injectMirror(repositorySession, pomRepositories);
            mavenRepositorySystem.injectProxy(repositorySession, pomRepositories);
            mavenRepositorySystem.injectAuthentication(repositorySession, pomRepositories);
            return pomRepositories;
        }
    
        private boolean hasFile(Artifact artifact) {
            return artifact != null
                    && artifact.getFile() != null
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

                    repository.setLayout(getLayout(mirror.getLayout()));
                }
    
                repository.setBlocked(mirror.isBlocked());
            }
        }
    
        public void injectAuthentication(List<ArtifactRepository> repositories, List<Server> servers) {
            if (repositories != null) {
                Map<String, Server> serversById = new HashMap<>();
    
                if (servers != 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)
  10. impl/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java

                        authCtx.close();
                        return result;
                    }
                }
            }
            return null;
        }
    
        public void injectAuthentication(RepositorySystemSession session, List<ArtifactRepository> repositories) {
            if (repositories != null && session != null) {
                for (ArtifactRepository repository : repositories) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 32.6K bytes
    - Viewed (0)
Back to top