Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for duplicate (0.16 sec)

  1. maven-api-impl/src/test/java/org/apache/maven/internal/impl/DefaultSettingsValidatorTest.java

            validator.validate(settings, problems);
            assertEquals(1, problems.messages.size());
            assertContains(
                    problems.messages.get(0), "'servers.server.id' must be unique but found duplicate server with id test");
        }
    
        @Test
        void testValidateUniqueProfileId() throws Exception {
            Settings settings = new Settings();
            Profile profile1 = new Profile();
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/api/services/model/ModelNormalizer.java

     *
     */
    public interface ModelNormalizer {
    
        /**
         * Merges duplicate elements like multiple declarations of the same build plugin in the specified model.
         *
         * @param model The model whose duplicate elements should be merged, must not be {@code null}.
         * @param request The model building request that holds further settings, must not be {@code null}.
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultNode.java

            }
    
            if (!included) {
                if (Objects.equals(winnerVersion, node.getArtifact().getVersion())) {
                    details.add("omitted for duplicate");
                } else {
                    details.add("omitted for conflict with " + winnerVersion);
                }
            }
    
            StringBuilder buffer = new StringBuilder();
            if (included) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  4. maven-core/src/site/apt/configuration-management.apt

     files for the current project. if yes. then I'm able to find projects that
     can be offered to be opened together with the current project.
     problems with the current solution are:
     1. information is duplicate. once in POM's dependencies and once in the
     maven.multiproject.includes property.
     2. it works without problems only for projects with relative paths, e.g., from
    Plain Text
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 18 00:24:53 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelNormalizer.java

             * the first occurrence. So when we're in lenient/compat mode, we have to deal with such broken POMs and mimic
             * 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();
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java

                    } else if (logger.isWarnEnabled()) {
                        Lifecycle original = phaseToLifecycleMap.get(phase);
                        logger.warn(
                                "Duplicated lifecycle phase {}. Defined in {} but also in {}",
                                phase,
                                original.getId(),
                                lifecycle.getId());
                    }
                }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java

                lifecycle.phases().forEach(phase -> {
                    if (!set.add(phase.name())) {
                        throw new IllegalArgumentException(
                                "Found duplicated phase '" + phase.name() + "' in '" + lifecycle.id() + "' lifecycle");
                    }
                });
            }
        }
    
        @Override
        public Iterator<Lifecycle> iterator() {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top