- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for detectModelVersion (0.11 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelVersionUtils.java
* Uses both the modelVersion element and namespace URI for detection. * * @param pomDocument the POM document (domtrip Document) * @return the detected model version */ public static String detectModelVersion(Document pomDocument) { Editor editor = new Editor(pomDocument); Element root = editor.root(); if (root == null) { return MODEL_VERSION_4_0_0; }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 9.5K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategy.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 27.6K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategy.java
Path pomPath = entry.getKey(); Document pomDocument = entry.getValue(); processedPoms.add(pomPath); String currentVersion = ModelVersionUtils.detectModelVersion(pomDocument); context.info(pomPath + " (current: " + currentVersion + ")"); context.indent(); try { if (currentVersion.equals(targetModelVersion)) {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 16.6K bytes - Click Count (0)