Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for resolvedSource (0.05 sec)

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

        }
    
        @Test
        void testResolvedSource() {
            String location = "/tmp";
            Path path = Paths.get(location);
            String modelId = "org.example:test:1.0.0";
            ModelSource source = Sources.resolvedSource(path, modelId);
    
            assertNotNull(source);
            assertInstanceOf(Sources.ResolvedPathSource.class, source);
            assertNull(source.getPath());
            assertEquals(path.toString(), source.getLocation());
    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. api/maven-api-core/src/test/java/org/apache/maven/api/services/ModelSourceTest.java

            String location = "/tmp/resolved-pom.xml";
            Path path = Paths.get(location);
            String modelId = "org.apache.maven:maven-core:4.0.0";
    
            ModelSource source = Sources.resolvedSource(path, modelId);
    
            assertNotNull(source);
            assertEquals(modelId, source.getModelId(), "Resolved source should return the provided modelId");
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/Sources.java

         * @return a new ModelSource instance configured as a resolved source
         * @throws NullPointerException if path is null
         */
        @Nonnull
        public static ModelSource resolvedSource(@Nonnull Path path, @Nullable String modelId) {
            return new ResolvedPathSource(requireNonNull(path, "path"), path.toString(), modelId);
        }
    
        /**
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 8.2K bytes
    - Viewed (0)
Back to top