Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-3224

Maven XML schemes are not usable in XML catalogs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.10
    • None
    • None

    Description

      XML catalogs are usable especially for XML validation and in XML editors. They eliminate the need for schemaLocation attribute and online access to schema. They provide convenience and performance for XML processing. XML catalogs should map namespace to single schema file. This schema file can include other files but each namespace should be defined by single "primary" schema file.

      Unfortunately different maven schemes (maven-4.0.0.xsd, settings-1.0.0.xsd, etc.) define complex types with same name in the same namespace with different content.

      For Maven 2 I am suggesting quick solution which is to rename all repeating complex types to unique names and then either merge all schemes to one file or create simple "primary" schema file which would include all schema files.

      For Maven 3 I am suggesting to introduce different namespaces for different formats to allow separate versioning.

      Attachments

        1. schemes.zip
          22 kB
          Vojtech Habarta

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              vojtech.habarta Vojtech Habarta
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: