Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for resolveVersion (0.1 sec)

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

                    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());
    
            VersionRequest requestA = new VersionRequest();
            requestA.addRepository(newTestRepository());
    
    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-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/AbstractVersionTransformation.java

            request.setLocalRepository(localRepository);
            request.setRemoteRepositories(remoteRepositories);
            return resolveVersion(artifact, request);
        }
    
        protected String resolveVersion(Artifact artifact, RepositoryRequest request)
                throws RepositoryMetadataResolutionException {
            RepositoryMetadata metadata;
            // Don't use snapshot metadata for LATEST (which isSnapshot returns true for)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/LatestArtifactTransformation.java

                throws ArtifactResolutionException, ArtifactNotFoundException {
            if (Artifact.LATEST_VERSION.equals(artifact.getVersion())) {
                try {
                    String version = resolveVersion(artifact, request);
                    if (Artifact.LATEST_VERSION.equals(version)) {
                        throw new ArtifactNotFoundException("Unable to determine the latest version", artifact);
                    }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java

                    Objects.requireNonNull(repositoryEventDispatcher, "repositoryEventDispatcher cannot be null");
        }
    
        @SuppressWarnings("checkstyle:methodlength")
        @Override
        public VersionResult resolveVersion(RepositorySystemSession session, VersionRequest request)
                throws VersionResolutionException {
            RequestTrace trace = RequestTrace.newChild(request.getTrace(), request);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/ReleaseArtifactTransformation.java

                throws ArtifactResolutionException, ArtifactNotFoundException {
            if (Artifact.RELEASE_VERSION.equals(artifact.getVersion())) {
                try {
                    String version = resolveVersion(artifact, request);
    
                    if (Artifact.RELEASE_VERSION.equals(version)) {
                        throw new ArtifactNotFoundException("Unable to determine the release version", artifact);
                    }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/RepositorySystemTest.java

            //                throws VersionRangeResolutionException;
    
        }
    
        @Test
        void testResolveVersion() throws Exception {
            // VersionResult resolveVersion( RepositorySystemSession session, VersionRequest request )
            //                throws VersionResolutionException;
        }
    
        @Test
        void testReadArtifactDescriptor() throws Exception {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultArtifactDescriptorReader.java

                    a = a.setVersion(versionResult.getVersion());
    
                    versionRequest =
                            new VersionRequest(pomArtifact, request.getRepositories(), request.getRequestContext());
                    versionRequest.setTrace(trace);
                    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)
  8. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/SnapshotTransformation.java

            if (artifact.isSnapshot() && artifact.getBaseVersion().equals(artifact.getVersion())) {
                try {
                    String version = resolveVersion(artifact, request);
                    artifact.updateVersion(version, request.getLocalRepository());
                } catch (RepositoryMetadataResolutionException e) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

         *
         * @see org.apache.maven.api.services.VersionResolver#resolve(Session, ArtifactCoordinates) (String)
         */
        @Nonnull
        Version resolveVersion(@Nonnull ArtifactCoordinates artifact);
    
        /**
         * Expands a version range to a list of matching versions, in ascending order.
         * For example, resolves "[3.8,4.0)" to "3.8", "3.8.1", "3.8.2".
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 16:43:07 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  10. apache-maven/pom.xml

          <artifactId>asm</artifactId>
        </dependency>
    
        <dependency>
          <groupId>org.apache.maven.resolver</groupId>
          <artifactId>maven-resolver-tools</artifactId>
          <version>${resolverVersion}</version>
          <scope>test</scope>
          <exclusions>
            <exclusion>
              <groupId>org.slf4j</groupId>
              <artifactId>slf4j-nop</artifactId>
            </exclusion>
          </exclusions>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 13:41:46 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top