Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 17 of 17 for getModelId (0.06 seconds)

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

                this.modelId = modelId;
            }
    
            @Override
            public Path getPath() {
                return null;
            }
    
            @Override
            @Nullable
            public String getModelId() {
                return modelId;
            }
    
            @Override
            public Source resolve(String relative) {
                return null;
            }
    
            @Override
            @Nullable
    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)
  2. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderCommon.java

                            && p.getLocation("version").getSource() != null
                            && defaulModelId.equals(
                                    p.getLocation("version").getSource().getModelId()))
                    .distinct()
                    .map(Plugin::getArtifactId) // managed by us, groupId is always o.a.m.plugins
                    .toList();
    
            if (!unversionedPlugins.isEmpty()) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 08:42:00 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  3. api/maven-api-core/src/test/java/org/apache/maven/api/services/SourcesTest.java

            assertInstanceOf(Sources.ResolvedPathSource.class, source);
            assertNull(source.getPath());
            assertEquals(path.toString(), source.getLocation());
            assertEquals(modelId, source.getModelId());
        }
    
        @Test
        void testPathSourceFunctionality() {
            // Test basic source functionality
            Path path = Paths.get("/tmp");
    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)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelProblemUtils.java

         */
        public static String formatLocation(ModelProblem problem, String projectId) {
            StringBuilder buffer = new StringBuilder(256);
    
            if (!problem.getModelId().equals(projectId)) {
                buffer.append(problem.getModelId());
    
                if (!problem.getSource().isEmpty()) {
                    if (!buffer.isEmpty()) {
                        buffer.append(", ");
                    }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  5. api/maven-api-core/src/test/java/org/apache/maven/api/services/ModelSourceTest.java

        @Test
        void testBuildSourceHasNoModelId() {
            Path path = Paths.get("/tmp/pom.xml");
            ModelSource source = Sources.buildSource(path);
    
            assertNotNull(source);
            assertNull(source.getModelId(), "Build sources should not have a modelId");
            assertEquals(path, source.getPath());
        }
    
        @Test
        void testResolvedSourceWithModelId() {
            String location = "/tmp/resolved-pom.xml";
    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)
  6. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java

                                && p.getLocation("version").getSource() != null
                                && defaulModelId.equals(
                                        p.getLocation("version").getSource().getModelId()))
                        .distinct()
                        .map(Plugin::getArtifactId) // managed by us, groupId is always o.a.m.plugins
                        .toList();
                if (!unversionedPlugins.isEmpty()) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 55.1K bytes
    - Click Count (0)
  7. api/maven-api-model/src/main/mdo/maven.mdo

          </fields>
          <codeSegments>
            <codeSegment>
              <version>4.0.0+</version>
              <code>
                <![CDATA[
        @Override
        public String toString() {
            return getModelId() + " " + getLocation();
        }
                ]]>
              </code>
            </codeSegment>
          </codeSegments>
        </class>
      </classes>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 17 09:48:21 GMT 2026
    - 133.5K bytes
    - Click Count (0)
Back to Top