Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for ModelSource (0.06 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelSource.java

         * @return a new ModelSource for the resolved POM, or null if:
         *         <ul>
         *           <li>This is not a build source</li>
         *           <li>No POM can be found at the resolved location</li>
         *         </ul>
         * @throws NullPointerException if modelLocator or relative is null
         */
        @Nullable
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelSource.java

     * encouraged to implement {@link ModelSource2} instead of implementing this interface directly.
     *
     * @see ModelSource2
     * @deprecated instead use {@link Source}
     */
    @Deprecated
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuildingRequest.java

        }
    
        @Override
        public synchronized ModelSource getModelSource() {
            if (modelSource == null && pomFile != null) {
                modelSource = new FileModelSource(pomFile);
            }
            return modelSource;
        }
    
        @Override
        public DefaultModelBuildingRequest setModelSource(ModelSource modelSource) {
            this.modelSource = modelSource;
    
            return this;
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 25 08:27:34 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/Sources.java

         * in the filesystem and support resolving related POMs.
         *
         * @param path the path to the POM file or project directory
         * @return a new ModelSource instance configured as a build source
         * @throws NullPointerException if path is null
         */
        @Nonnull
        public static ModelSource buildSource(@Nonnull Path path) {
            return new BuildPathSource(requireNonNull(path, "path"));
        }
    
        /**
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/project/ProjectBuilder.java

         *
         * @see org.apache.maven.model.building.ModelSource2
         */
        ProjectBuildingResult build(ModelSource modelSource, ProjectBuildingRequest request)
                throws ProjectBuildingException;
    
        /**
         * Builds a project descriptor for the specified model source.
         *
         * @param modelSource The source of the model to build the project descriptor from, must not be {@code null}.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 10:13:56 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/resolution/ModelResolver.java

         * supports version ranges and updates the given {@code parent} instance to match the returned {@code ModelSource}.
         * If {@code parent} declares a version range, the version corresponding to the returned {@code ModelSource} will
         * be set on the given {@code parent}.
         * </p>
         *
         * @param parent The parent coordinates to resolve, must not be {@code null}.
         *
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 05 11:52:05 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  7. api/maven-api-core/src/test/java/org/apache/maven/api/services/SourcesTest.java

            Path basePath = Paths.get("/tmp");
            ModelSource.ModelLocator locator = mock(ModelSource.ModelLocator.class);
            Path resolvedPath = Paths.get("/tmp/subproject/pom.xml");
            when(locator.locateExistingPom(any(Path.class))).thenReturn(resolvedPath);
    
            Sources.BuildPathSource source = (Sources.BuildPathSource) Sources.buildSource(basePath);
            ModelSource resolved = source.resolve(locator, "subproject");
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  8. api/maven-api-core/src/test/java/org/apache/maven/api/services/ModelSourceTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Test for ModelSource interface and its implementations.
     */
    class ModelSourceTest {
    
        @Test
        void testBuildSourceHasNoModelId() {
            Path path = Paths.get("/tmp/pom.xml");
            ModelSource source = Sources.buildSource(path);
    
            assertNotNull(source);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/project/collector/PomlessCollectionStrategy.java

            ProjectBuildingRequest buildingRequest = request.getProjectBuildingRequest();
            ModelSource modelSource = new UrlModelSource(DefaultMaven.class.getResource("project/standalone.xml"));
            MavenProject project =
                    projectBuilder.build(modelSource, buildingRequest).getProject();
            project.setExecutionRoot(true);
            request.setProjectPresent(false);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/FilterModelBuildingRequest.java

            request.setPomFile(pomFile);
    
            return this;
        }
    
        @Override
        public ModelSource getModelSource() {
            return request.getModelSource();
        }
    
        @Override
        public FilterModelBuildingRequest setModelSource(ModelSource modelSource) {
            request.setModelSource(modelSource);
    
            return this;
        }
    
        @Override
        public int getValidationLevel() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 25 08:27:34 UTC 2025
    - 6.3K bytes
    - Viewed (0)
Back to top