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.
I would like that XML code complation could take in consideration catalogs/xml schema which are bundled in Maven dependencies Actually you have to register your schema using the IDE functions In my projects I use a lot of custom xml with schemas, when I distribute my Jars my clients have to register manually the schema in the IDE, if Netbeans could load catalogs directly from the classpath (or explicilty Maven deps) It would be a great enhancement Reference http://wiki.netbeans.org/SchemaAwareCodeCompletion I known that developing a nb module I could deploy a catalog to the user platform, but I do not want to create nor a dev environment for a NB Module neither the infrastructure for the distribution of the module to my clients thanks
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>