Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for setArtifact (0.11 sec)

  1. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/DefaultVersionResolverTest.java

            requestB.addRepository(newTestRepository());
            Artifact artifactB =
                    new DefaultArtifact("org.apache.maven.its", "dep-mng5324", "classifierB", "jar", "07.20.3-SNAPSHOT");
            requestB.setArtifact(artifactB);
    
            VersionResult resultB = versionResolver.resolveVersion(session, requestB);
            assertEquals("07.20.3-20120809.112920-97", resultB.getVersion());
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/RepositorySystemTest.java

            artifactRequest.setArtifact(artifact);
            artifactRequest.addRepository(newTestRepository());
    
            ArtifactResult artifactResult = system.resolveArtifact(session, artifactRequest);
            checkArtifactResult(artifactResult, "artifact-1.0.jar");
    
            artifact = new DefaultArtifact("ut.simple:artifact:zip:1.0");
            artifactRequest.setArtifact(artifact);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java

            d.setScope(Artifact.SCOPE_COMPILE);
            Artifact artifact = repositorySystem.createDependencyArtifact(d);
    
            ArtifactResolutionRequest request = new ArtifactResolutionRequest()
                    .setArtifact(artifact)
                    .setResolveRoot(true)
                    .setResolveTransitively(true)
                    .setRemoteRepositories(getRemoteRepositories())
                    .setLocalRepository(getLocalRepository());
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/project/ClasspathArtifactResolver.java

                                ProjectClasspathTestType.dir + "transitive-" + scope + "-dep.xml"));
                        result.setArtifact(artifact);
                    } catch (FileNotFoundException | URISyntaxException e) {
                        throw new IllegalStateException("Missing test POM for " + artifact, e);
                    }
                } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/metadata/MetadataResolutionRequest.java

         */
        Artifact getArtifact();
    
        /**
         * Sets the artifact for which to resolve metadata.
         *
         * @param artifact The artifact for which to resolve metadata.
         * @return This request, never {@code null}.
         */
        MetadataResolutionRequest setArtifact(Artifact artifact);
    
        /**
         * Gets the local repository to use for the resolution.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/metadata/DefaultMetadataResolutionRequest.java

            this.repositoryRequest = new DefaultRepositoryRequest(resolutionRequest);
        }
    
        public Artifact getArtifact() {
            return artifact;
        }
    
        public DefaultMetadataResolutionRequest setArtifact(Artifact artifact) {
            this.artifact = artifact;
    
            return this;
        }
    
        public ArtifactRepository getLocalRepository() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/DefaultArtifactDescriptorReaderTest.java

            field.set(reader, eventDispatcher);
    
            ArtifactDescriptorRequest request = new ArtifactDescriptorRequest();
    
            request.addRepository(newTestRepository());
    
            request.setArtifact(new DefaultArtifact("org.apache.maven.its", "dep-mng5459", "jar", "0.4.0-SNAPSHOT"));
    
            // execute
            reader.readArtifactDescriptor(session, request);
    
            // verify
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/ArtifactDescriptorReaderDelegate.java

            }
            if (downloadUrl != null && !downloadUrl.isEmpty()) {
                Artifact artifact = result.getArtifact();
                Map<String, String> props = new HashMap<>(artifact.getProperties());
                props.put(ArtifactProperties.DOWNLOAD_URL, downloadUrl);
                result.setArtifact(artifact.setProperties(props));
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ResolutionNode.java

            return success;
        }
    
        @Override
        public String toString() {
            return artifact.toString() + " (" + depth + "; " + (active ? "enabled" : "disabled") + ")";
        }
    
        public void setArtifact(Artifact artifact) {
            this.artifact = artifact;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionRequest.java

            setOffline(request.isOffline());
            setForceUpdate(request.isForceUpdate());
        }
    
        public Artifact getArtifact() {
            return artifact;
        }
    
        public ArtifactResolutionRequest setArtifact(Artifact artifact) {
            this.artifact = artifact;
    
            return this;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top