[
https://issues.apache.org/jira/browse/MRELEASE-1129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17730941#comment-17730941
]
Elliotte Rusty Harold commented on MRELEASE-1129:
-------------------------------------------------
Thanks for the shoutout.
Michael is correct. The value of xmlns and xmlns:xsi effectively serves as an
identifier, not a locator. They cannot and should not change, nor is it a
security issue since no one needs to resolve them.
xsi:schemaLocation is a locator and can be resolved (though it shouldn't need
to be in the normal course of maven processing). That can point anywhere and
the URL can change from one pom to the next.
"Is there a hard requirement somewhere documented that the root namespace
identifier must be the http://maven.apache.org/POM/4.0.0 URI?"
Yes, yes there is. The published schema at
https://maven.apache.org/xsd/maven-4.0.0.xsd requires this. We could perhaps be
clearer on this point in the prose documentation.
Namespaces are parts of the names of the elements in the document. Changing the
namespace is like changing the name of every single element in the document.
The XML 1.0 specification doesn't care which names you use but Maven most
certainly does.
> https POM xmlns URIs break the release plugin
> ---------------------------------------------
>
> Key: MRELEASE-1129
> URL: https://issues.apache.org/jira/browse/MRELEASE-1129
> Project: Maven Release Plugin
> Issue Type: Bug
> Components: prepare
> Affects Versions: 3.0.1
> Reporter: Henning Schmiedehausen
> Priority: Major
> Fix For: waiting-for-feedback, wontfix-candidate
>
> Attachments: pom-after-transform.xml, pom.xml
>
>
> replacing the "http" URIs with "https" in the POM headers breaks the release
> process.
> When the pom gets prepared, the plugin rewrites the header back to "http" and
> adds an xmlns section to every opening tag in the POM creating an invalid POM.
> Sadly we are stuck with http:// URIs in the POMs for now.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)