Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for setDependencies (0.09 sec)

  1. compat/maven-model/src/test/java/org/apache/maven/model/DependencyManagementTest.java

            d1.setGroupId("myGroupId");
            assertNotNull(dm.getDependencies());
            assertEquals(0, dm.getDependencies().size());
            dm.addDependency(d1);
            assertNotNull(dm.getDependencies());
            assertEquals(1, dm.getDependencies().size());
            dm.getDependencies().get(0).setArtifactId("myArtifactId");
            assertEquals("myArtifactId", dm.getDependencies().get(0).getArtifactId());
            dm.setDependencies(null);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/ArtifactMetadata.java

        }
    
        public void setArtifactExists(boolean artifactExists) {
            this.artifactExists = artifactExists;
        }
    
        public Collection<ArtifactMetadata> getDependencies() {
            return dependencies;
        }
    
        public void setDependencies(Collection<ArtifactMetadata> dependencies) {
            this.dependencies = dependencies;
        }
    
        public String getArtifactUri() {
            return artifactUri;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

            this.setId(original.getId());
            this.setIsolatedRealm(original.isIsolatedRealm());
            this.setSource(original.getSource());
            this.setDependencies(original.getDependencies());
            this.setDependencyNode(original.getDependencyNode());
        }
    
        private static List<ComponentDescriptor<?>> clone(List<MojoDescriptor> mojos, PluginDescriptor pluginDescriptor) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilder.java

            pluginDescriptor.setRequiredMavenVersion(extractRequiredMavenVersion(c).orElse(null));
    
            pluginDescriptor.addMojos(extractMojos(c, pluginDescriptor));
    
            pluginDescriptor.setDependencies(extractComponentDependencies(c));
    
            return pluginDescriptor;
        }
    
        private String extractGroupId(PlexusConfiguration c) {
            return c.getChild("groupId").getValue();
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/FileToRawModelMerger.java

                DependencyManagement source,
                boolean sourceDominant,
                Map<Object, Object> context) {
            Iterator<Dependency> sourceIterator = source.getDependencies().iterator();
            builder.dependencies(target.getDependencies().stream()
                    .map(d -> mergeDependency(d, sourceIterator.next(), sourceDominant, context))
                    .collect(Collectors.toList()));
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/management/DefaultDependencyManagementInjector.java

                    for (Dependency dependency : model.getDependencies()) {
                        Object key = getDependencyKey().apply(dependency);
                        dependencies.put(key, dependency);
                    }
    
                    boolean modified = false;
                    for (Dependency managedDependency : dependencyManagement.getDependencies()) {
                        Object key = getDependencyKey().apply(managedDependency);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverResult.java

         */
        @Nonnull
        Map<Dependency, Path> getDependencies();
    
        /**
         * Returns the Java module name of the dependency at the given path.
         * The given dependency should be one of the paths returned by {@link #getDependencies()}.
         * The module name is extracted from the {@code module-info.class} file if present, otherwise from
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Sep 28 09:03:24 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/normalization/DefaultModelNormalizer.java

             * the way 2.x works. When we're in strict mode, the removal of duplicates just saves other merging steps from
             * aftereffects and bogus error messages.
             */
            List<Dependency> dependencies = model.getDependencies();
            Map<String, Dependency> normalized = new LinkedHashMap<>(dependencies.size() * 2);
    
            for (Dependency dependency : dependencies) {
                normalized.put(dependency.getManagementKey(), dependency);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderTest.java

                    }
                }
            });
    
            ModelBuildingResult result = builder.build(request);
            Dependency dep = result.getEffectiveModel().getDelegate().getDependencyManagement().getDependencies().stream()
                    .filter(d -> "test:mydep:jar".equals(d.getManagementKey()))
                    .findFirst()
                    .get();
            assertEquals("0.2", dep.getVersion());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java

            return profile.getActivation() == null
                    && profile.getBuild() == null
                    && profile.getDependencies().isEmpty()
                    && (profile.getDependencyManagement() == null
                            || profile.getDependencyManagement().getDependencies().isEmpty())
                    && profile.getDistributionManagement() == null
                    && profile.getModules().isEmpty()
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top