Description of problem
XML validation fails when creating a Maven Settings credential when the input file is using the http://maven.apache.org/SETTINGS/1.0.0 schema. This doesn't happen when using a file with the http://maven.apache.org/SETTINGS/1.2.0 schema.
How reproducible
Always
Steps to Reproduce:
- Create a new Maven Settings credential.
- Upload the attached tackle-test.xml file
Actual results
An error is displayed in the UI (see attached screenshot):
file_0.xml:2: element settings: Schemas validity error : Element '{http://maven.apache.org/SETTINGS/1.0.0}settings': No matching global declaration available for the validation root.
Expected results
The file is validated and can be used.
Additional info
Changing the file settings for the following will make it work:
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">