- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for getModelVersion (0.19 sec)
-
compat/maven-model/src/test/java/org/apache/maven/model/v4/MavenModelVersionTest.java
} } @Test void testV4Model() { assertEquals("4.0.0", new MavenModelVersion().getModelVersion(model)); } @Test void testV4ModelVersion() { Model m = model.withModelVersion("4.1.0"); assertEquals("4.0.0", new MavenModelVersion().getModelVersion(m)); } @Test void testV4ModelRoot() { Model m = model.withRoot(true);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.5K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t00/ProjectInheritanceTest.java
// Value taken from super model // ---------------------------------------------------------------------- assertEquals("4.0.0", p4.getModelVersion()); assertEquals("4.0.0", p4.getModelVersion()); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.5K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/BuildModelSourceTransformer.java
} // // Infer modelVersion from namespace URI // void handleModelVersion(Model model) { String namespace = model.getDelegate().getNamespaceUri(); if (model.getModelVersion() == null && namespace != null && namespace.startsWith(NAMESPACE_PREFIX)) { model.setModelVersion(namespace.substring(NAMESPACE_PREFIX.length())); } } // // Infer parent information
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.5K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomArtifactTransformer.java
} artifacts = result; } return artifacts; } void write(Model model, Path dest) throws IOException, XMLStreamException { String version = model.getModelVersion(); Files.createDirectories(dest.getParent()); try (Writer w = Files.newBufferedWriter(dest)) { MavenStaxWriter writer = new MavenStaxWriter();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 8K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t02/ProjectInheritanceTest.java
// Value taken from super model // ---------------------------------------------------------------------- assertEquals("4.0.0", project4.getModelVersion()); Build build = project4.getBuild(); List<Plugin> plugins = build.getPlugins(); Map<String, Integer> validPluginCounts = new HashMap<>();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.2K bytes - Viewed (0)