In every pom.xml I've seen, xsi:schemaLocation
is specified like this:
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
Example: https://maven.apache.org/pom.html.
The second URL is a valid XSD. What is the purpose of the first URL? http://maven.apache.org/POM/4.0.0 returns a "page not found" error.
Is there another purpose to this seemingly broken URL?
This attribute has two values, separated by a space. The first value is the namespace to use. The second value is the location of the XML schema to use for that namespace. Which means the first part is not a real URI and can not be accessed, cause it's the namespace within the XSD and the second one is the XSD definition which can be used to check the xml file.
So this means in result there is no broken schema
. It is correct.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With