Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 21 for ModelSource (0.23 seconds)

  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/ModelSource.java

     * encouraged to implement {@link ModelSource2} instead of implementing this interface directly.
     *
     * @see ModelSource2
     * @deprecated instead use {@link Source}
     */
    @Deprecated
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 1.3K bytes
    - Click Count (0)
  3. 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)
  4. 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)
  5. 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)
  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}.
         *
    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)
  7. 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)
  8. 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)
  9. 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)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/TransformedArtifact.java

    import java.util.Objects;
    import java.util.concurrent.atomic.AtomicReference;
    import java.util.function.Supplier;
    
    import org.apache.maven.api.services.ModelBuilderException;
    import org.apache.maven.api.services.ModelSource;
    import org.apache.maven.artifact.DefaultArtifact;
    import org.apache.maven.internal.transformation.PomArtifactTransformer;
    import org.apache.maven.internal.transformation.TransformationFailedException;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Nov 06 18:32:25 GMT 2025
    - 4.8K bytes
    - Click Count (0)
Back to Top