Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for createFromVersionSpec (0.19 sec)

  1. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java

            VersionRange range = VersionRange.createFromVersionSpec("[1.0,1.2]");
            assertSame(range, VersionRange.createFromVersionSpec("[1.0,1.2]")); // same instance from spec cache
    
            VersionRange spec = VersionRange.createFromVersionSpec("1.0");
            assertSame(spec, VersionRange.createFromVersionSpec("1.0")); // same instance from spec cache
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java

            if (d.getVersion() == null) {
                return null;
            }
    
            VersionRange versionRange;
            try {
                versionRange = VersionRange.createFromVersionSpec(d.getVersion());
            } catch (InvalidVersionSpecificationException e) {
                return null;
            }
    
            Artifact artifact = createDependencyArtifactX(
                    d.getGroupId(),
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

        }
    
        public Artifact createDependencyArtifact(Dependency d) {
            VersionRange versionRange;
            try {
                versionRange = VersionRange.createFromVersionSpec(d.getVersion());
            } catch (InvalidVersionSpecificationException e) {
                // MNG-5368: Log a message instead of returning 'null' silently.
                this.logger.error(
                        String.format(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/repository/TestRepositorySystem.java

            try {
                String version = plugin.getVersion();
                if (version == null || version.isEmpty()) {
                    version = "RELEASE";
                }
                versionRange = VersionRange.createFromVersionSpec(version);
            } catch (InvalidVersionSpecificationException e) {
                return null;
            }
    
    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/test/java/org/apache/maven/repository/legacy/resolver/DefaultArtifactCollectorTest.java

                String id, String version, String scope, String inheritedScope, boolean optional)
                throws InvalidVersionSpecificationException {
            VersionRange versionRange = VersionRange.createFromVersionSpec(version);
            Artifact artifact = artifactFactory.createDependencyArtifact(
                    GROUP_ID, id, versionRange, "jar", null, scope, inheritedScope, optional);
            ArtifactSpec spec = null;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 42.5K bytes
    - Viewed (0)
  6. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

         * @return a new {@link VersionRange} object that represents the spec
         * @throws InvalidVersionSpecificationException if invalid version specification
         */
        public static VersionRange createFromVersionSpec(String spec) throws InvalidVersionSpecificationException {
            if (spec == null) {
                return null;
            }
    
            VersionRange cached = CACHE_SPEC.get(spec);
            if (cached != null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

            if (effectiveScope == null) {
                return null;
            }
    
            VersionRange versionRange = VersionRange.createFromVersionSpec(dependency.getVersion());
    
            Artifact dependencyArtifact = factory.createDependencyArtifact(
                    dependency.getGroupId(),
                    dependency.getArtifactId(),
                    versionRange,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top