- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 11 for DomUtils (0.05 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/DomUtils.java
* .map(Element::textContentTrimmed) * .orElse(null); * * // Set text content (fluent API) * element.textContent("4.0.0"); * }</pre> * * <h2>When to Use DomUtils</h2> * <p>Use DomUtils methods when you need: * <ul> * <li>Maven-specific element ordering (insertNewElement, insertContentElement)</li> * <li>High-level helpers (addGAVElements, createDependency, createPlugin)</li>
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 7.4K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategyTest.java
Editor editor = new Editor(document); Element root = editor.root(); Element build = DomUtils.findChildElement(root, "build"); Element pluginManagement = DomUtils.findChildElement(build, "pluginManagement"); Element plugins = DomUtils.findChildElement(pluginManagement, "plugins"); var pluginElements = plugins.children("plugin").toList();
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 12.6K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategyTest.java
Element dependencies = DomUtils.findChildElement(moduleBRoot, "dependencies"); Element dependency = DomUtils.findChildElement(dependencies, "dependency"); // Verify dependency elements exist before inference assertNotNull(DomUtils.findChildElement(dependency, "groupId")); assertNotNull(DomUtils.findChildElement(dependency, "artifactId"));
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 35.2K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategy.java
Element subprojectsElement = root.child(SUBPROJECTS).orElse(null); if (subprojectsElement != null) { if (isSubprojectsListRedundant(subprojectsElement, pomPath)) { DomUtils.removeElement(subprojectsElement); context.detail("Removed: redundant subprojects list (matches direct children)"); hasChanges = true; } }
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/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategyTest.java
// Verify child elements namespace updated recursively Element dependencies = DomUtils.findChildElement(root, "dependencies"); assertNotNull(dependencies); assertEquals(expectedNamespaceUri, dependencies.namespaceURI()); Element dependency = DomUtils.findChildElement(dependencies, "dependency"); assertNotNull(dependency);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 38.8K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategy.java
if (!correctRelativePathStr.equals(currentRelativePath)) { // Update or create relativePath element using DomUtils convenience method DomUtils.updateOrCreateChildElement(parentElement, RELATIVE_PATH, correctRelativePathStr); context.detail("Fixed: " + "relativePath corrected from '" + currentRelativePath + "' to '"Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 22.2K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/package-info.java
* <li>{@link org.apache.maven.cling.invoker.mvnup.goals.PomDiscovery} - Discovers POM files in multi-module projects</li> * <li>{@link org.apache.maven.cling.invoker.mvnup.goals.DomUtils} - XML manipulation utilities</li> * </ul> * * <h2>Usage Examples</h2> * * <h3>Check for Available Upgrades</h3> * <pre>{@code * mvnup check * }</pre> * * <h3>Apply All Upgrades</h3>
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 3.3K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java
UpgradeContext context = createMockContext(); strategy.doApply(context, pomMap); // Convert to string to check formatting String result = DomUtils.toXml(document); // Check that the plugin version was upgraded assertTrue(result.contains("<version>3.2</version>"), "Plugin version should be upgraded to 3.2");Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 27.8K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelVersionUtils.java
} else { // Create new modelVersion element if it doesn't exist // domtrip will automatically handle proper positioning and formatting DomUtils.insertContentElement(root, MODEL_VERSION, newVersion); } } /** * Removes the model version element from a POM editor.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/AbstractUpgradeGoal.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 12.5K bytes - Click Count (0)