Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for withPreserveModelVersion (0.11 sec)

  1. compat/maven-model/src/test/java/org/apache/maven/model/v4/MavenModelVersionTest.java

            Model m = model.withRoot(true);
            assertEquals("4.1.0", new MavenModelVersion().getModelVersion(m));
        }
    
        @Test
        void testV4ModelPreserveModelVersion() {
            Model m = model.withPreserveModelVersion(true);
            assertEquals("4.1.0", new MavenModelVersion().getModelVersion(m));
        }
    
        @Test
        void testV4ModelPriority() {
            Model m = model.withBuild(Build.newInstance()
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java

                    model = model.withParent(model.getParent().withRelativePath(null));
                }
    
                if (!model.isPreserveModelVersion()) {
                    model = model.withPreserveModelVersion(false);
                    String modelVersion = new MavenModelVersion().getModelVersion(model);
                    model = model.withModelVersion(modelVersion);
                }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top