Maven 2 & 3

Maven XML schemes are not usable in XML catalogs

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.0.10
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    1

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.

Issue Links

Activity

Hide
Vojtech Habarta added a comment -

I am attaching one proposal but there are many different ways how to solve this issue.

Show
Vojtech Habarta added a comment - I am attaching one proposal but there are many different ways how to solve this issue.
Hide
Herve Boutemy added a comment -

toolchain fixed in r728800, 728801, 728802, 728803 for Maven 3.0.x, 2.0.10-RC, 2.0.x and 2.1.x
plugin-metadata fixed in r728813 and redeployed to http://maven.apache.org/xsd/

Show
Herve Boutemy added a comment - toolchain fixed in r728800, 728801, 728802, 728803 for Maven 3.0.x, 2.0.10-RC, 2.0.x and 2.1.x plugin-metadata fixed in r728813 and redeployed to http://maven.apache.org/xsd/

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: