- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for getModelVersion (0.37 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.5K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java
: null); builder.profiles(prune(model.getProfiles())); model = builder.build(); String modelVersion = new MavenModelVersion().getModelVersion(model); if (!ModelBuilder.MODEL_VERSION_4_0_0.equals(modelVersion) && !preserveModelVersion) { warnNotDowngraded(project); } model = model.withModelVersion(modelVersion);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Nov 27 07:40:26 GMT 2025 - 21.2K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/project/canonical/CanonicalProjectBuilderTest.java
// Top-level elements // ---------------------------------------------------------------------- assertEquals("4.0.0", project.getModelVersion()); // ---------------------------------------------------------------------- // Plugins // ----------------------------------------------------------------------Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Mar 25 09:45:07 GMT 2025 - 3.4K bytes - Click Count (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<>();Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jun 04 10:35:11 GMT 2025 - 6.3K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java
// models without a version starting with 3.4. validateStringNotEmpty("modelVersion", problems, Severity.ERROR, Version.V20, m.getModelVersion(), m); validateModelVersion(problems, m.getModelVersion(), m, "4.0.0"); validateStringNoExpression("groupId", problems, Severity.WARNING, Version.V20, m.getGroupId(), m); if (parent == null) {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 03 15:06:05 GMT 2025 - 66.8K bytes - Click Count (0) -
compat/maven-model/src/main/java/org/apache/maven/model/merge/ModelMerger.java
} protected void mergeModel_ModelVersion( Model target, Model source, boolean sourceDominant, Map<Object, Object> context) { String src = source.getModelVersion(); if (src != null) { if (sourceDominant || target.getModelVersion() == null) { target.setModelVersion(src); target.setLocation("modelVersion", source.getLocation("modelVersion")); } }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Apr 03 11:21:39 GMT 2025 - 99.2K bytes - Click Count (0)