This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | XMLSchema Code Completion use catalog/schema loaded from classpath (Maven dependency) | ||
---|---|---|---|
Product: | xml | Reporter: | eolivelli |
Component: | Catalog | Assignee: | Svata Dedic <sdedic> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Other | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
eolivelli
2014-02-21 06:49:53 UTC
Is there some 'standard' or widely used way how XSDs are distributed in JAR ? Some defined location, entry(ies) in MANIFEST ... ? Sorry :) I am not aware of such packaging; if it exists, please provide links to specs. Honestly I'm not aware of a standard way of packaging XSDs in JAR files. Maybe the simplest solution would be to look for them inside the root directory of the jar, or inside META-INF directory. Nowadays we distribute them inside the META-INF directory, because in that directory are usually put configuration descriptors of beans, and it is very simple to provide references to XSD files inside the same directory something like this META-INF/magnews-app-schema.xsd META-INF/magnews-app.xml --> referes to myschema.xsd <app xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='magnews-app-schema.xsd'> .... </app> |