Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 81 for getArtifacts (0.08 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t04/ProjectInheritanceTest.java

            MavenProject project1 = getProjectWithDependencies(pom1);
    
            assertEquals(pom0Basedir, project1.getParent().getBasedir());
            Set set = project1.getArtifacts();
            assertNotNull(set, "No artifacts");
            assertTrue(set.size() > 0, "No Artifacts");
            assertTrue(set.size() == 3, "Set size should be 3, is " + set.size());
    
            for (Object aSet : set) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

                Set<Artifact> allArtifacts = new LinkedHashSet<>();
                allArtifacts.add(rootArtifact);
                allArtifacts.addAll(result.getArtifacts());
                result.setArtifacts(allArtifacts);
            }
    
            return result;
        }
    
        public void resolve(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/project/ProjectClasspathTestType.java

            artifact = getArtifact(project, "maven-test-test", "scope-provided");
            assertNull(artifact, "Check no provided dependencies are transitive");
            artifact = getArtifact(project, "maven-test-test", "scope-test");
            assertNull(artifact, "Check no test dependencies are transitive");
    
            artifact = getArtifact(project, "maven-test-test", "scope-compile");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionResult.java

                artifacts = new LinkedHashSet<>();
            }
    
            artifacts.add(artifact);
        }
    
        public Set<Artifact> getArtifacts() {
            if (artifacts == null) {
                artifacts = new LinkedHashSet<>();
            }
    
            return artifacts;
        }
    
        public void setArtifacts(Set<Artifact> artifacts) {
            this.artifacts = artifacts;
        }
    
    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/repository/MetadataResolutionResult.java

        public void addArtifact(Artifact artifact) {
            if (artifacts == null) {
                artifacts = new LinkedHashSet<>();
            }
    
            artifacts.add(artifact);
        }
    
        public Set<Artifact> getArtifacts() {
            return artifacts;
        }
    
        public void addRequestedArtifact(Artifact artifact) {
            if (requestedArtifacts == null) {
                requestedArtifacts = new LinkedHashSet<>();
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/DefaultProjectDependenciesResolver.java

                        }
                    }
    
                    if (!missing.isEmpty()) {
                        throw e;
                    }
                }
    
                resolved.addAll(result.getArtifacts());
            }
    
            return resolved;
        }
    
        private Set<String> getIgnorableArtifacts(Collection<? extends MavenProject> projects) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java

                    a -> session.getArtifact(ProducedArtifact.class, RepositoryUtils.toArtifact(a)));
            return Collections.unmodifiableCollection(attached);
        }
    
        @Override
        public Collection<ProducedArtifact> getAllArtifacts(Project project) {
            ArrayList<ProducedArtifact> result = new ArrayList<>(2);
            result.addAll(project.getArtifacts());
            result.addAll(getAttachedArtifacts(project));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java

                node.getArtifact().setScope(artifact.getScope());
            }
    
            if (Artifact.SCOPE_SYSTEM.equals(node.getArtifact().getScope())
                    && (node.getArtifact().getFile() == null)
                    && (artifact.getFile() != null)) {
                fireEvent(ResolutionListener.MANAGE_ARTIFACT_SYSTEM_PATH, listeners, node, artifact);
                node.getArtifact().setFile(artifact.getFile());
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  9. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/util/ConsoleRepositoryListener.java

                    "for " + event.getArtifact() + ": " + event.getException().getMessage());
        }
    
        public void artifactDescriptorMissing(RepositoryEvent event) {
            println("artifactDescriptorMissing", "for " + event.getArtifact());
        }
    
        public void artifactInstalled(RepositoryEvent event) {
            println("artifactInstalled", event.getArtifact() + " to " + event.getFile());
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java

            /* getArtifact */
            assertFalse(
                    wagon.getTransferEventSupport().hasTransferListener(transferListener),
                    "Transfer listener is registered before test");
            wagonManager.getArtifact(artifact, repo, transferListener, false);
            assertFalse(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top