Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for addArtifact (0.13 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java

            org.eclipse.aether.artifact.Artifact mainArtifact = RepositoryUtils.toArtifact(artifact);
            mainArtifact = mainArtifact.setFile(source);
            request.addArtifact(mainArtifact);
    
            String versionKey = artifact.getGroupId() + ':' + artifact.getArtifactId();
            String snapshotKey = null;
            if (artifact.isSnapshot()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/artifact/installer/DefaultArtifactInstaller.java

            org.eclipse.aether.artifact.Artifact mainArtifact = RepositoryUtils.toArtifact(artifact);
            mainArtifact = mainArtifact.setFile(source);
            request.addArtifact(mainArtifact);
    
            for (ArtifactMetadata metadata : artifact.getMetadataList()) {
                if (metadata instanceof ProjectArtifactMetadata) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractorTest.java

            project.addDependency(dependency2);
            project.setBuild(new Build());
    
            // Build up an artifactMap
            project.addArtifact(new Artifact("g0", "a0", "v0", "e0", "c0"));
            project.addArtifact(new Artifact("g1", "a1", "v1", "e1", "c1"));
            project.addArtifact(new Artifact("g2", "a2", "v2", "e2", "c2"));
        }
    
        /**
         * <p>testValueExtraction.</p>
         *
         * @throws Exception if any.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/repository/TestRepositorySystem.java

            ArtifactResolutionResult result = new ArtifactResolutionResult();
    
            if (request.isResolveRoot()) {
                try {
                    resolve(request.getArtifact(), request);
                    result.addArtifact(request.getArtifact());
                } catch (IOException e) {
                    result.addMissingArtifact(request.getArtifact());
                }
            }
    
            if (request.isResolveTransitively()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/MetadataResolutionResult.java

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

        }
    
        public ArtifactResolutionResult setOriginatingArtifact(final Artifact originatingArtifact) {
            this.originatingArtifact = originatingArtifact;
    
            return this;
        }
    
        public void addArtifact(Artifact artifact) {
            if (artifacts == null) {
                artifacts = new LinkedHashSet<>();
            }
    
            artifacts.add(artifact);
        }
    
        public Set<Artifact> getArtifacts() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/DefaultArtifactCollectorTest.java

            ArtifactSpec spec = null;
            if (artifact != null) {
                spec = new ArtifactSpec();
                spec.artifact = artifact;
                source.addArtifact(spec);
            }
            return spec;
        }
    
        @SuppressWarnings("unchecked")
        private static Set<Artifact> createSet(Object[] x) {
            return new LinkedHashSet(Arrays.asList(x));
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 42.5K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

                    return result;
                }
            }
    
            if (artifacts == null || artifacts.isEmpty()) {
                if (request.isResolveRoot()) {
                    result.addArtifact(rootArtifact);
                }
                return result;
            }
    
            // After the collection we will have the artifact object in the result but they will not be resolved yet.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java

                                    set.add(node);
    
                                    // This is required right now.
                                    result.addArtifact(artifact);
                                }
                            }
                        } catch (OverConstrainedVersionException e) {
                            result.addVersionRangeViolation(e);
                        }
    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