Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for setArtifact (0.14 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-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultArtifactDescriptorReader.java

                    if (withinSameGav(relocatedArtifact, a)) {
                        result.setArtifact(relocatedArtifact);
                        return model; // they share same model
                    } else {
                        result.addRelocation(a);
                        a = relocatedArtifact;
                        result.setArtifact(a);
                    }
                } else {
                    return model;
                }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17K bytes
    - Viewed (0)
  4. 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)
  5. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

                    result.addMissingArtifact(request.getArtifact());
                    return result;
                }
            }
    
            ArtifactResolutionRequest collectionRequest = request;
    
            if (request.isResolveTransitively()) {
                MetadataResolutionRequest metadataRequest = new DefaultMetadataResolutionRequest(request);
    
                metadataRequest.setArtifact(rootArtifact);
    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. 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)
  7. 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)
  8. 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)
  9. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

            RepositoryMetadata metadata = new ArtifactRepositoryMetadata(request.getArtifact());
    
            try {
                repositoryMetadataManager.resolve(metadata, request);
            } catch (RepositoryMetadataResolutionException e) {
                throw new ArtifactMetadataRetrievalException(e.getMessage(), e, request.getArtifact());
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  10. 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)
Back to top