Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for setVersions (0.11 sec)

  1. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/VersionsMetadata.java

                }
    
                Collection<String> versions =
                        new LinkedHashSet<>(recessive.getVersioning().getVersions());
                versions.addAll(versioning.getVersions());
                versioning.setVersions(new ArrayList<>(versions));
            }
    
            // just carry-on as-is
            if (!recessive.getPlugins().isEmpty()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionRangeResolver.java

                        }
                    }
    
                    Collections.sort(versions);
                    result.setVersions(versions);
                }
            }
    
            return result;
        }
    
        private Map<String, ArtifactRepository> getVersions(
                RepositorySystemSession session, VersionRangeResult result, VersionRangeRequest request) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

            public ProjectBuilder setArtifactId(String artifactId) {
                project.setArtifactId(artifactId);
                return this;
            }
    
            public ProjectBuilder setVersion(String version) {
                project.setVersion(version);
                return this;
            }
    
            // Dependencies
            //
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/project/artifact/MavenMetadataSourceTest.java

            /*
            Dependency dep1 = new Dependency();
            dep1.setGroupId( "test" );
            dep1.setArtifactId( "test-artifact" );
            dep1.setVersion( "1" );
            dep1.setType( "jar" );
    
            Exclusion exc = new Exclusion();
            exc.setGroupId( "test" );
            exc.setArtifactId( "test-artifact3" );
    
            dep1.addExclusion( exc );
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/BuildModelSourceTransformer.java

                }
            }
        }
    
        //
        // CI friendly versions
        //
        void handleCiFriendlyVersion(TransformerContext context, Model model) {
            String version = model.getVersion();
            String modVersion = replaceCiFriendlyVersion(context, version);
            model.setVersion(modVersion);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java

                cacheKey = new Key(session, request);
    
                Object obj = cache.get(session, cacheKey);
                if (obj instanceof Record) {
                    Record record = (Record) obj;
                    result.setVersion(record.version);
                    result.setRepository(
                            getRepository(session, request.getRepositories(), record.repoClass, record.repoId));
                    return result;
                }
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

            Collection<String> versions = new LinkedHashSet<>();
    
            if ((repoMetadata != null) && (repoMetadata.getVersioning() != null)) {
                versions.addAll(repoMetadata.getVersioning().getVersions());
            }
    
            versions.addAll(availableVersions);
    
            List<ArtifactVersion> artifactVersions = new ArrayList<>(versions.size());
    
            for (String version : versions) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/AbstractRepositoryMetadata.java

            if (Artifact.LATEST_VERSION.equals(version) || Artifact.RELEASE_VERSION.equals(version)) {
                // meta-versions are not valid <version/> values...don't write them.
                metadata.setVersion(null);
            }
    
            if (changed || !metadataFile.exists()) {
                metadataFile.getParentFile().mkdirs();
                try (OutputStream output = Files.newOutputStream(metadataFile.toPath())) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. compat/maven-repository-metadata/src/test/java/org/apache/maven/artifact/repository/metadata/MetadataTest.java

            Metadata source = new Metadata();
            source.setArtifactId("source-artifact");
            source.setGroupId("source-group");
            source.setVersion("2.0");
            assertFalse(target.merge(source));
            assertEquals("myArtifact", target.getArtifactId());
            assertEquals("myGroup", target.getGroupId());
            assertEquals("1.0-SNAPSHOT", target.getVersion());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  10. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

        public PluginDescriptor() {}
    
        public PluginDescriptor(PluginDescriptor original) {
            this.setGroupId(original.getGroupId());
            this.setArtifactId(original.getArtifactId());
            this.setVersion(original.getVersion());
            this.setGoalPrefix(original.getGoalPrefix());
            this.setInheritedByDefault(original.isInheritedByDefault());
            this.setName(original.getName());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top