Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for ModelSource (0.04 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. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

        }
    
        private static class WrapModelSource implements ModelSource {
            private final org.apache.maven.model.building.ModelSource modelSource;
    
            WrapModelSource(org.apache.maven.model.building.ModelSource modelSource) {
                this.modelSource = modelSource;
            }
    
            @Override
            @Nullable
            public ModelSource resolve(@Nonnull ModelLocator modelLocator, @Nonnull String relative) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 17:20:31 UTC 2025
    - 51.8K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  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);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 2.5K bytes
    - Viewed (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()
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 10 07:30:49 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  8. 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;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Nov 06 18:32:25 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java

                throws ModelBuilderException {
            ModelBuilderResult result = buildModel(session, src);
            Model model = result.getRawModel();
            return transformPom(model, project);
        }
    
        protected Model buildBomWithoutFlatten(RepositorySystemSession session, MavenProject project, ModelSource src)
                throws ModelBuilderException {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Nov 27 07:40:26 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformer.java

                MavenProject project, Path consumer, RepositorySystemSession session) {
            Path actual = project.getFile().toPath();
            Path parent = project.getBaseDirectory();
            ModelSource source = new ModelSource() {
                @Override
                public Path getPath() {
                    return actual;
                }
    
                @Override
                public InputStream openStream() throws IOException {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Nov 06 18:32:25 UTC 2025
    - 8.9K bytes
    - Viewed (0)
Back to top