Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for getDependencies (0.1 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-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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

            }
    
            if (model != null) {
                pomArtifact = artifact;
                dependencies = model.getDependencies();
                DependencyManagement dependencyManagement = model.getDependencyManagement();
                managedDependencies = dependencyManagement == null ? null : dependencyManagement.getDependencies();
                MavenSession session = legacySupport.getSession();
                if (session != null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/composition/DefaultDependencyManagementImporter.java

                DependencyManagement depMgmt = target.getDependencyManagement();
    
                if (depMgmt != null) {
                    for (Dependency dependency : depMgmt.getDependencies()) {
                        dependencies.put(dependency.getManagementKey(), dependency);
                    }
                } else {
                    depMgmt = DependencyManagement.newInstance();
                }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. compat/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilderTest.java

            assertFalse(pd.isIsolatedRealm());
            assertTrue(pd.isInheritedByDefault());
            assertEquals(2, pd.getMojos().size());
            assertEquals(1, pd.getDependencies().size());
    
            MojoDescriptor md = pd.getMojos().get(0);
    
            assertEquals("jar", md.getGoal());
            assertEquals("mojo-description", md.getDescription());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProject.java

        public Path getBasedir() {
            return nonNull(project.getBasedir(), "basedir").toPath();
        }
    
        @Nonnull
        @Override
        public List<DependencyCoordinates> getDependencies() {
            return new MappedList<>(getModel().getDependencies(), this::toDependency);
        }
    
        @Nonnull
        @Override
        public List<DependencyCoordinates> getManagedDependencies() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top