Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 399 for getVersion (0.06 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/project/ProjectSorter.java

                Map<String, Vertex> vertices = vertexMap.computeIfAbsent(projectKey, k -> new HashMap<>(2, 1));
    
                vertices.put(project.getVersion(), graph.addVertex(projectId));
            }
    
            for (Vertex projectVertex : graph.getVertices()) {
                String projectId = projectVertex.getLabel();
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/RelocatedArtifact.java

        }
    
        @Override
        public String getVersion() {
            if (version != null) {
                return version;
            } else {
                return artifact.getVersion();
            }
        }
    
        // Revise these three methods when MRESOLVER-233 is delivered
        @Override
        public Artifact setVersion(String version) {
            String current = getVersion();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 10 07:09:12 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java

            // We can do this by calling isChildOfRootNode on the current node.
            if ((artifact.getVersion() != null)
                    && (!node.isChildOfRootNode() || node.getArtifact().getVersion() == null)) {
                fireEvent(ResolutionListener.MANAGE_ARTIFACT_VERSION, listeners, node, artifact);
                node.getArtifact().setVersion(artifact.getVersion());
            }
    
            if ((artifact.getScope() != null)
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 36.5K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoDescriptorCreator.java

                pluginInPom = findPlugin(plugin, project.getPluginManagement().getPlugins());
            }
    
            if (pluginInPom != null) {
                if (plugin.getVersion() == null) {
                    plugin.setVersion(pluginInPom.getVersion());
                }
    
                plugin.setDependencies(new ArrayList<>(pluginInPom.getDependencies()));
            }
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Mar 25 09:45:07 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/MavenScopeDependenciesValidator.java

                            a.getGroupId() + ":" + a.getArtifactId()))
                    .filter(a -> a.getVersion().startsWith("3."))
                    .map(a -> a.getGroupId() + ":" + a.getArtifactId() + ":" + a.getVersion())
                    .collect(Collectors.toSet());
    
            if (!mavenArtifacts.isEmpty()) {
                pluginValidationManager.reportPluginValidationIssue(
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/ReleaseArtifactTransformation.java

            // TODO Should this be changed for MNG-6754 too?
            versioning.updateTimestamp();
            versioning.addVersion(artifact.getVersion());
    
            if (artifact.isRelease()) {
                versioning.setRelease(artifact.getVersion());
            }
    
            return new ArtifactRepositoryMetadata(artifact, versioning);
        }
    
        @Override
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/repository/MavenArtifactMetadata.java

            return artifactId;
        }
    
        public void setArtifactId(String artifactId) {
            this.artifactId = artifactId;
        }
    
        public String getVersion() {
            return version;
        }
    
        public void setVersion(String version) {
            this.version = version;
        }
    
        public String getClassifier() {
            return classifier;
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t06/ProjectInheritanceTest.java

                Artifact artifact = (Artifact) iter.next();
                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 Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  9. impl/maven-core/src/test/java/org/apache/maven/project/DefaultMavenProjectBuilderTest.java

            assertEquals("1", childProject.getParentArtifact().getVersion());
            assertNotNull(childProject.getParent());
            assertEquals("1", childProject.getParent().getVersion());
            assertNotNull(childProject.getModel().getParent());
            assertEquals("[1,10]", childProject.getModel().getParent().getVersion());
        }
    
        /**
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 17:20:31 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  10. 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 Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Jun 26 07:56:58 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top