Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for setRepositories (0.1 sec)

  1. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java

                            RemoteRepository r = (RemoteRepository) result.getRepository();
                            subRequest.setRepositories(Collections.singletonList(r));
                        } else {
                            subRequest.setRepositories(request.getRepositories());
                        }
                        VersionResult subResult = resolveVersion(session, subRequest);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. compat/maven-model/src/test/java/org/apache/maven/model/merge/MavenMergerTest.java

            Model target = new Model();
            target.setRepositories( Arrays.asList( repository ) );
    
            Model source = new Model();
            source.setRepositories( Arrays.asList( repository ) );
    
            modelMerger.merge( target, source, true, null );
    
            assertThat( target.getRepositories(), contains( repository ) );
        }
    
        @Test
        public void mergeSameRoles()
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/MetadataResolutionResult.java

        public List<ArtifactRepository> getRepositories() {
            if (repositories == null) {
                return Collections.emptyList();
            }
    
            return Collections.unmodifiableList(repositories);
        }
    
        public MetadataResolutionResult setRepositories(final List<ArtifactRepository> repositories) {
            this.repositories = repositories;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionResult.java

        public List<ArtifactRepository> getRepositories() {
            if (repositories == null) {
                return Collections.emptyList();
            }
    
            return Collections.unmodifiableList(repositories);
        }
    
        public ArtifactResolutionResult setRepositories(final List<ArtifactRepository> repositories) {
            this.repositories = repositories;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

                try {
                    ArtifactRequest artifactRequest = new ArtifactRequest();
                    artifactRequest.setArtifact(RepositoryUtils.toArtifact(artifact));
                    artifactRequest.setRepositories(RepositoryUtils.toRepos(remoteRepositories));
    
                    // Maven 2.x quirk: an artifact always points at the local repo, regardless whether resolved or not
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/internal/aether/ReverseTreeRepositoryListener.java

                    if (artifactRequest != null && artifactRequest.getRepositories() != null) {
                        repositories.addAll(artifactRequest.getRepositories());
                    } else if (artifactDescriptorRequest != null && artifactDescriptorRequest.getRepositories() != null) {
                        repositories.addAll(artifactDescriptorRequest.getRepositories());
                    }
                    if (!repositories.isEmpty()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  7. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionRangeResolver.java

            List<MetadataRequest> metadataRequests =
                    new ArrayList<>(request.getRepositories().size());
    
            metadataRequests.add(new MetadataRequest(metadata, null, request.getRequestContext()));
    
            for (RemoteRepository repository : request.getRepositories()) {
                MetadataRequest metadataRequest = new MetadataRequest(metadata, repository, request.getRequestContext());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectBuilder.java

            try {
                List<ArtifactRepository> repositories = session.toArtifactRepositories(
                        request.getRepositories() != null ? request.getRepositories() : session.getRemoteRepositories());
                ProjectBuildingRequest req = new DefaultProjectBuildingRequest()
                        .setRepositorySession(session.getSession())
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultArtifactDescriptorReader.java

                Artifact pomArtifact = ArtifactDescriptorUtils.toPomArtifactUnconditionally(a);
                try {
                    VersionRequest versionRequest =
                            new VersionRequest(a, request.getRepositories(), request.getRequestContext());
                    versionRequest.setTrace(trace);
                    VersionResult versionResult = versionResolver.resolveVersion(session, versionRequest);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17K bytes
    - Viewed (0)
  10. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/merge/MavenSettingsMerger.java

            shallowMergeById(dominant.getProfiles(), recessive.getProfiles(), recessiveSourceLevel);
            shallowMergeById(dominant.getRepositories(), recessive.getRepositories(), recessiveSourceLevel);
            shallowMergeById(dominant.getPluginRepositories(), recessive.getPluginRepositories(), recessiveSourceLevel);
        }
    
        /**
         * @param dominant
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top