Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for unique (0.31 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. api/maven-api-core/src/main/java/org/apache/maven/api/Artifact.java

     *
     * @since 4.0.0
     */
    @Experimental
    @Immutable
    public interface Artifact {
    
        /**
         * Returns a unique identifier for this artifact.
         * The identifier is composed of groupId, artifactId, extension, classifier, and version.
         *
         * @return the unique identifier
         */
        @Nonnull
        default String key() {
            return getGroupId()
                    + ':'
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Dec 15 15:48:33 GMT 2023
    - 3K bytes
    - Viewed (0)
  3. maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java

                    () -> buildPom("unique-repo-id/artifact-repo"),
                    "Non-unique repository ids did not cause validation error");
        }
    
        /* MNG-4193 */
        @Test
        void testValidationErrorUponNonUniquePluginRepositoryId() throws Exception {
            assertThrows(
                    ProjectBuildingException.class,
                    () -> buildPom("unique-repo-id/plugin-repo"),
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 93.2K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/Lifecycle.java

        String CLEAN = "clean";
    
        String DEFAULT = "default";
    
        String SITE = "site";
    
        String WRAPPER = "wrapper";
    
        /**
         * Name or identifier of this lifecycle.
         *
         * @return the unique identifier for this lifecycle
         */
        @Override
        String id();
    
        /**
         * Collection of phases for this lifecycle
         */
        Collection<Phase> phases();
    
        /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  5. maven-core/src/site/apt/inheritance.apt

           declaration is required.
    
       - [name] tells maven what the user-friendly name of this project is. The name
           element is similar to artifactId in that it is a unique descriptor for
    Plain Text
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Jul 18 17:22:19 GMT 2022
    - 3.5K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelNormalizer.java

                }
            }
    
            /*
             * NOTE: This is primarily to keep backward-compat with Maven 2.x which did not validate that dependencies are
             * unique within a single POM. Upon multiple declarations, 2.x just kept the last one but retained the order of
             * the first occurrence. So when we're in lenient/compat mode, we have to deal with such broken POMs and mimic
    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)
  7. maven-compat/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepository.java

        }
    
        /**
         * Create a remote deployment repository.
         *
         * @param id            the unique identifier of the repository
         * @param url           the URL of the repository
         * @param layout        the layout of the repository
         * @param uniqueVersion whether to assign each snapshot a unique version
         */
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/ModelData.java

     * processing by providing a means to transport information that cannot be (easily) extracted from the model itself.
     */
    record ModelData(ModelSource source, Model model) {
    
        /**
         * Gets unique identifier of the model
         *
         * @return The effective identifier of the model, never {@code null}.
         */
        public String id() {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelTransformerContextBuilder.java

                return null;
            }
            return sources.stream()
                    .reduce((a, b) -> {
                        throw new IllegalStateException(String.format(
                                "No unique Source for %s:%s: %s and %s",
                                groupId, artifactId, a.getLocation(), b.getLocation()));
                    })
                    .orElse(null);
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/ArtifactCoordinate.java

        /**
         * The extension of the artifact.
         *
         * @return the extension or an empty string if none, never {@code null}
         */
        @Nonnull
        String getExtension();
    
        /**
         * Unique id identifying this artifact
         */
        @Nonnull
        default String getId() {
            return getGroupId()
                    + ":" + getArtifactId()
                    + ":" + getExtension()
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Dec 19 19:08:55 GMT 2023
    - 2.3K bytes
    - Viewed (0)
Back to top