This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch fix in repository https://gitbox.apache.org/repos/asf/maven-shade-plugin.git
commit a7b93eac77961110e7d0d350b126314904f125ad Author: Elliotte Rusty Harold <[email protected]> AuthorDate: Fri Mar 20 14:59:56 2026 -0400 Namespace is http://maven.apache.org/POM/4.0.0 --- src/main/java/org/apache/maven/plugins/shade/pom/PomWriter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/shade/pom/PomWriter.java b/src/main/java/org/apache/maven/plugins/shade/pom/PomWriter.java index 14001c2..fcca524 100644 --- a/src/main/java/org/apache/maven/plugins/shade/pom/PomWriter.java +++ b/src/main/java/org/apache/maven/plugins/shade/pom/PomWriter.java @@ -41,7 +41,7 @@ public class PomWriter { if (namespaceDeclaration) { String modelVersion = newModel.getModelVersion(); - Namespace pomNamespace = Namespace.getNamespace("", "http://maven.apache.org/POM/" + modelVersion); + Namespace pomNamespace = Namespace.getNamespace("http://maven.apache.org/POM/4.0.0"); root.setNamespace(pomNamespace); @@ -52,7 +52,7 @@ public class PomWriter { if (root.getAttribute("schemaLocation", xsiNamespace) == null) { root.setAttribute( "schemaLocation", - "http://maven.apache.org/POM/" + modelVersion + " http://maven.apache.org/maven-v" + "http://maven.apache.org/POM/4.0.0" + " http://maven.apache.org/maven-v" + modelVersion.replace('.', '_') + ".xsd", xsiNamespace); }
