diff --git a/maven-release-manager/src/main/java/org/apache/maven/shared/release/transform/jdom/JDomModelETL.java b/maven-release-manager/src/main/java/org/apache/maven/shared/release/transform/jdom/JDomModelETL.java index 9aef4cf98..49df5abb8 100644 --- a/maven-release-manager/src/main/java/org/apache/maven/shared/release/transform/jdom/JDomModelETL.java +++ b/maven-release-manager/src/main/java/org/apache/maven/shared/release/transform/jdom/JDomModelETL.java @@ -195,7 +195,7 @@ private void writePom( File pomFile, Document document, ReleaseDescriptor releas if ( rootElement.getAttribute( "schemaLocation", xsiNamespace ) == null ) { rootElement.setAttribute( "schemaLocation", "http://maven.apache.org/POM/" + modelVersion - + " http://maven.apache.org/maven-v" + modelVersion.replace( '.', '_' ) + ".xsd", xsiNamespace ); + + " https://maven.apache.org/xsd/maven-" + modelVersion + ".xsd", xsiNamespace ); } // the empty namespace is considered equal to the POM namespace, so match them up to avoid extra xmlns="" diff --git a/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom/expected-pom-with-schema.xml b/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom/expected-pom-with-schema.xml index 498bc85ca..a983613cf 100644 --- a/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom/expected-pom-with-schema.xml +++ b/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom/expected-pom-with-schema.xml @@ -16,7 +16,7 @@ ~ limitations under the License. --> - + 4.0.0 groupId artifactId diff --git a/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom/expected-pom-with-schema.xml b/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom/expected-pom-with-schema.xml index 7f656c27d..f565d93f8 100644 --- a/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom/expected-pom-with-schema.xml +++ b/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom/expected-pom-with-schema.xml @@ -16,7 +16,7 @@ ~ limitations under the License. --> - + 4.0.0 groupId artifactId diff --git a/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom/expected-pom-with-schema.xml b/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom/expected-pom-with-schema.xml index 749b0e78b..b89e5f4c1 100644 --- a/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom/expected-pom-with-schema.xml +++ b/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom/expected-pom-with-schema.xml @@ -16,7 +16,7 @@ ~ limitations under the License. --> - + 4.0.0 groupId artifactId