Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 108 for getGroupId (0.06 sec)

  1. compat/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilderTest.java

            }
        }
    
        @Test
        void testBuildReader() throws Exception {
            PluginDescriptor pd = build("/plugin.xml");
    
            assertEquals("org.apache.maven.plugins", pd.getGroupId());
            assertEquals("maven-jar-plugin", pd.getArtifactId());
            assertEquals("2.3-SNAPSHOT", pd.getVersion());
            assertEquals("jar", pd.getGoalPrefix());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/MetadataBridge.java

                throw new RepositoryException(e.getMessage(), e);
            }
        }
    
        public boolean isMerged() {
            return merged;
        }
    
        public String getGroupId() {
            return emptify(metadata.getGroupId());
        }
    
        public String getArtifactId() {
            return metadata.storedInGroupDirectory() ? "" : emptify(metadata.getArtifactId());
        }
    
        public String getVersion() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/ArtifactDescriptorReaderDelegate.java

            if (system) {
                props = Collections.singletonMap(MavenArtifactProperties.LOCAL_PATH, dependency.getSystemPath());
            }
    
            Artifact artifact = new DefaultArtifact(
                    dependency.getGroupId(),
                    dependency.getArtifactId(),
                    dependency.getClassifier(),
                    null,
                    dependency.getVersion(),
                    props,
                    stereotype);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultArtifactDescriptorReader.java

                    }
                } else {
                    return model;
                }
            }
        }
    
        private boolean withinSameGav(Artifact a1, Artifact a2) {
            return Objects.equals(a1.getGroupId(), a2.getGroupId())
                    && Objects.equals(a1.getArtifactId(), a2.getArtifactId())
                    && Objects.equals(a1.getVersion(), a2.getVersion());
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/VersionNotFoundException.java

            this.cause = cause;
    
            this.dependency = dependency;
        }
    
        private static String formatLocationInPom(Dependency dependency) {
            return "Dependency: " + ArtifactUtils.versionlessKey(dependency.getGroupId(), dependency.getArtifactId());
        }
    
        public Dependency getDependency() {
            return dependency;
        }
    
        public String getProjectId() {
            return projectId;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/Exclusion.java

    /**
     * A dependency exclusion.
     *
     * @since 4.0.0
     * @see DependencyCoordinates#getExclusions()
     */
    @Experimental
    public interface Exclusion {
        @Nullable
        String getGroupId();
    
        @Nullable
        String getArtifactId();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/RelocatedArtifact.java

            this.message = (message != null && !message.isEmpty()) ? message : null;
        }
    
        @Override
        public String getGroupId() {
            if (groupId != null) {
                return groupId;
            } else {
                return artifact.getGroupId();
            }
        }
    
        @Override
        public String getArtifactId() {
            if (artifactId != null) {
                return artifactId;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractorTest.java

         */
        @Test
        public void testArtifactMap() throws Exception {
            assertEquals(
                    "g0",
                    ((Artifact) ReflectionValueExtractor.evaluate("project.artifactMap(g0:a0:c0)", project)).getGroupId());
            assertEquals(
                    "a1",
                    ((Artifact) ReflectionValueExtractor.evaluate("project.artifactMap(g1:a1:c1)", project))
                            .getArtifactId());
            assertEquals(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelProblemUtils.java

            }
            return toId(model.getDelegate());
        }
    
        static String toId(org.apache.maven.api.model.Model model) {
            String groupId = model.getGroupId();
            if (groupId == null && model.getParent() != null) {
                groupId = model.getParent().getGroupId();
            }
    
            String artifactId = model.getArtifactId();
    
            String version = model.getVersion();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/configuration/DefaultBeanConfigurationRequest.java

            if (model != null) {
                Build build = model.getBuild();
                if (build != null) {
                    for (Plugin plugin : build.getPlugins()) {
                        if (groupId.equals(plugin.getGroupId()) && artifactId.equals(plugin.getArtifactId())) {
                            return plugin;
                        }
                    }
    
                    PluginManagement mgmt = build.getPluginManagement();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top