Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for getModelId (0.64 sec)

  1. api/maven-api-core/src/test/java/org/apache/maven/api/services/SourcesTest.java

            assertInstanceOf(Sources.ResolvedPathSource.class, source);
            assertNull(source.getPath());
            assertEquals(path.toString(), source.getLocation());
            assertEquals(modelId, source.getModelId());
        }
    
        @Test
        void testPathSourceFunctionality() {
            // Test basic source functionality
            Path path = Paths.get("/tmp");
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelProblemUtils.java

         */
        public static String formatLocation(ModelProblem problem, String projectId) {
            StringBuilder buffer = new StringBuilder(256);
    
            if (!problem.getModelId().equals(projectId)) {
                buffer.append(problem.getModelId());
    
                if (!problem.getSource().isEmpty()) {
                    if (!buffer.isEmpty()) {
                        buffer.append(", ");
                    }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  3. compat/maven-model/src/main/java/org/apache/maven/model/InputSource.java

        /**
         * Get the identifier of the POM in the format {@code
         * <groupId>:<artifactId>:<version>}.
         *
         * @return String
         */
        public String getModelId() {
            return this.modelId;
        } // -- String getModelId()
    
        /**
         * Set the path/URL of the POM or {@code null} if unknown.
         *
         * @param location
         */
        public void setLocation(String location) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. api/maven-api-core/src/test/java/org/apache/maven/api/services/ModelSourceTest.java

        @Test
        void testBuildSourceHasNoModelId() {
            Path path = Paths.get("/tmp/pom.xml");
            ModelSource source = Sources.buildSource(path);
    
            assertNotNull(source);
            assertNull(source.getModelId(), "Build sources should not have a modelId");
            assertEquals(path, source.getPath());
        }
    
        @Test
        void testResolvedSourceWithModelId() {
            String location = "/tmp/resolved-pom.xml";
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/XmlReaderRequest.java

        @Nullable
        InputStream getInputStream();
    
        @Nullable
        Reader getReader();
    
        @Nullable
        Transformer getTransformer();
    
        boolean isStrict();
    
        @Nullable
        String getModelId();
    
        @Nullable
        String getLocation();
    
        boolean isAddDefaultEntities();
    
        interface Transformer {
            /**
             * Interpolate the value read from the xml document
             *
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Aug 29 12:46:27 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProblemCollector.java

                if (req.getLocation().getSource() != null) {
                    modelId = req.getLocation().getSource().getModelId();
                    source = req.getLocation().getSource().getLocation();
                }
            }
    
            if (modelId == null) {
                modelId = getModelId();
                source = getSource();
            }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 25 08:27:34 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  7. impl/maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java

                }
            }
            assertNotNull(dependencyLocation, "missing dependency");
            assertEquals(
                    "org.apache.maven.its:bom:0.1", dependencyLocation.getSource().getModelId());
    
            InputLocation pluginLocation = null;
            for (Plugin plugin : project.getBuildPlugins()) {
                if (plugin.getKey().equals("org.apache.maven.plugins:maven-clean-plugin")) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderException.java

         * exception is thrown so this information is merely meant to assist the user.
         *
         * @return The identifier of the POM or an empty string if not known, never {@code null}.
         */
        public String getModelId() {
            if (result == null) {
                return "";
            } else if (result.getEffectiveModel() != null) {
                return result.getEffectiveModel().getId();
            } else if (result.getRawModel() != null) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Sep 25 21:57:56 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                            if (result == null || result.getEffectiveModel() == null) {
                                throw new ProjectBuildingException(
                                        e.getModelId(), e.getMessage(), pomFile != null ? pomFile.toFile() : null, e);
                            }
                            // validation error, continue project building and delay failing to help IDEs
                            error = e;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 17:20:31 UTC 2025
    - 51.8K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelSource.java

         *
         * @return the model identifier, or {@code null} if not available or not applicable
         * @since 4.0.0
         */
        @Nullable
        default String getModelId() {
            return null;
        }
    
        /**
         * Interface for locating POM files within a project structure.
         * Implementations of this interface provide the ability to find POM files
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 4.4K bytes
    - Viewed (0)
Back to top