Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 91 for setVersion (0.35 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.java

                    res.getIncidentEdges(v2).get(0).getVersion(),
                    "wrong edge v1-v2 in the resulting graph after resolver");
    
            assertEquals(
                    1, res.getIncidentEdges(v3).size(), "wrong # of edges v1-v3 in the resulting graph after resolver");
            assertEquals(
                    "1.1",
                    res.getIncidentEdges(v3).get(0).getVersion(),
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java

                if (!metadata.getArtifactId().isEmpty()) {
                    path.append(metadata.getArtifactId()).append('/');
    
                    if (!metadata.getVersion().isEmpty()) {
                        path.append(metadata.getVersion()).append('/');
                    }
                }
            }
    
            path.append(insertRepositoryKey(metadata.getType(), repositoryKey));
    
            return path.toString();
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/Artifact.java

         */
        @Nonnull
        Version getVersion();
    
        /**
         * {@return the version or meta-version of the artifact}.
         * A meta-version is a version suffixed with the {@code SNAPSHOT} keyword.
         * Meta-versions are represented in a base version by their symbols (e.g., {@code SNAPSHOT}),
         * while they are replaced by, for example, the actual timestamp in the {@linkplain #getVersion() version}.
         */
        @Nonnull
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Jun 26 07:56:58 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. compat/maven-artifact/src/test/java/org/apache/maven/artifact/DefaultArtifactTest.java

            assertNull(artifact.getVersion());
            assertNull(artifact.getBaseVersion());
        }
    
        @Test
        void testMNG7780() throws Exception {
            VersionRange vr = VersionRange.createFromVersionSpec("[1.0,2.0)");
            artifact = new DefaultArtifact(groupId, artifactId, vr, scope, type, null, artifactHandler);
            assertNull(artifact.getVersion());
            assertNull(artifact.getBaseVersion());
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/OperatingSystemProfileActivator.java

            }
            if (result && os.getVersion() != null) {
                result = determineVersionMatch(os.getVersion());
            }
            return result;
        }
    
        private boolean ensureAtLeastOneNonNull(ActivationOS os) {
            return os.getArch() != null || os.getFamily() != null || os.getName() != null || os.getVersion() != null;
        }
    
        private boolean determineVersionMatch(String version) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  6. compat/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/ArtifactNotFoundException.java

        public ArtifactNotFoundException(String message, Artifact artifact) {
            this(
                    message,
                    artifact.getGroupId(),
                    artifact.getArtifactId(),
                    artifact.getVersion(),
                    artifact.getType(),
                    artifact.getClassifier(),
                    null,
                    artifact.getDownloadUrl(),
                    artifact.getDependencyTrail());
        }
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t07/ProjectInheritanceTest.java

                System.out.println("Artifact: " + artifact.getDependencyConflictId() + " " + artifact.getVersion()
                        + " Optional=" + (artifact.isOptional() ? "true" : "false"));
                assertTrue(
                        artifact.getVersion().equals("1.0"), "Incorrect version for " + artifact.getDependencyConflictId());
            }
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. compat/maven-artifact/src/main/java/org/apache/maven/artifact/ArtifactUtils.java

            clone.setRelease(artifact.isRelease());
            clone.setResolvedVersion(artifact.getVersion());
            clone.setResolved(artifact.isResolved());
            clone.setFile(artifact.getFile());
    
            clone.setAvailableVersions(copyList(artifact.getAvailableVersions()));
            if (artifact.getVersion() != null) {
                clone.setBaseVersion(artifact.getBaseVersion());
            }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/ProjectArtifactMetadata.java

        }
    
        @Override
        public String getLocalFilename(ArtifactRepository repository) {
            return getFilename();
        }
    
        private String getFilename() {
            return getArtifactId() + "-" + artifact.getVersion() + ".pom";
        }
    
        @Override
        public void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository)
                throws RepositoryMetadataStoreException {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 4K bytes
    - Viewed (0)
  10. compat/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/AbstractArtifactResolutionException.java

            this(
                    message,
                    artifact.getGroupId(),
                    artifact.getArtifactId(),
                    artifact.getVersion(),
                    artifact.getType(),
                    artifact.getClassifier(),
                    remoteRepositories,
                    artifact.getDependencyTrail(),
                    t);
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Tue Apr 01 21:22:14 UTC 2025
    - 10.1K bytes
    - Viewed (0)
Back to top