This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new 6753e1d57b Fix domtrip API breakage after 1.5.1 upgrade (#12139)
6753e1d57b is described below
commit 6753e1d57b5affc744b06ab1aa63dd6039d9a2c9
Author: Guillaume Nodet <[email protected]>
AuthorDate: Thu May 21 00:25:18 2026 +0200
Fix domtrip API breakage after 1.5.1 upgrade (#12139)
The children(String) method was renamed to childElements(String)
in domtrip 1.5.1, causing a compilation failure.
Co-authored-by: Claude Opus 4.6 <[email protected]>
---
.../org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoal.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoal.java
b/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoal.java
index a427ce595b..0dc73c968c 100644
---
a/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoal.java
+++
b/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoal.java
@@ -310,7 +310,7 @@ protected void fixIncompatibleExtensions(UpgradeContext
context) {
boolean modified = false;
boolean needsNisseCompat = false;
- List<Element> extensions = root.children("extension").toList();
+ List<Element> extensions =
root.childElements("extension").toList();
List<Element> toRemove = new ArrayList<>();
for (Element ext : extensions) {