Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 19 for ModelSource (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  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
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelData.java

         */
        ModelData(ModelSource source, Model model, String groupId, String artifactId, String version) {
            this.source = source;
            this.model = model;
            setGroupId(groupId);
            setArtifactId(artifactId);
            setVersion(version);
        }
    
        public ModelSource getSource() {
            return source;
        }
    
        /**
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 5.8K bytes
    - Click Count (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;
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 9.2K bytes
    - Click Count (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"));
        }
    
        /**
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  5. 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}.
         *
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  6. 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);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderRequest.java

            return builder(requireNonNull(request, "request cannot be null"))
                    .source(requireNonNull(source, "source cannot be null"))
                    .build();
        }
    
        @Nonnull
        static ModelBuilderRequest build(@Nonnull Session session, @Nonnull ModelSource source) {
            return builder()
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 10 07:30:49 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

            }
        }
    
        private Model readModel(
                ModelSource modelSource, File pomFile, ModelBuildingRequest request, DefaultModelProblemCollector problems)
                throws ModelBuildingException {
            Model model;
    
            if (modelSource == null) {
                if (pomFile != null) {
                    modelSource = new FileModelSource(pomFile);
                } else {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sun Mar 30 23:08:08 GMT 2025
    - 55.3K bytes
    - Click Count (0)
  9. 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");
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 5.4K bytes
    - Click Count (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() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 6.3K bytes
    - Click Count (0)
Back to Top