- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for DomUtils (0.03 sec)
-
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>
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 7.4K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/DomUtilsTest.java
DomUtils.insertContentElement(root, "licenses", ""); DomUtils.insertContentElement(root, "name", "Test Project"); DomUtils.insertNewElement("dependencies", root); DomUtils.insertContentElement(root, "description", "A test project"); DomUtils.insertNewElement("properties", root); DomUtils.insertContentElement(root, "url", "https://example.com");
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 31.3K bytes - Viewed (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();
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 12.6K bytes - Viewed (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"));
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 35.2K bytes - Viewed (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; } }
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 27.6K bytes - Viewed (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);Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 38.8K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategy.java
if (buildElement == null) { buildElement = DomUtils.insertNewElement(BUILD, root); } Element pluginManagementElement = buildElement.child(PLUGIN_MANAGEMENT).orElse(null); if (pluginManagementElement == null) { pluginManagementElement = DomUtils.insertNewElement(PLUGIN_MANAGEMENT, buildElement); }
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 37K bytes - Viewed (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 '"Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 22.2K bytes - Viewed (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>
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 3.3K bytes - Viewed (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");Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 27.8K bytes - Viewed (0)