Hi all, I use version 1.5 of the mojo jaxb2 maven plugin for generating schema files from annotated classes. I seem to have found problems with the replacement of namespace prefixes as configured in the transformSchema configuration section. What happens is that the plugin first creates a schema1.xsd file, with tns as prefix for the target namespace. Then the file is renamed, as configured in the transformSchema section and the appropriate prefix changed as well - BUT NOT EVERYWHERE : for type / base attributes the tns prefix is untouched, thus the resulting schema file is invalid:
Example excerpts: <xs:element name="someOtherImportItem" type="tns:someOtherImportItem"/> or: <xs:complexType name="someImportItem"> <xs:complexContent> <xs:extension base="tns:importItem"> ... I attached an example project. Cheers, Stefan InterComponentWare AG: Vorstand: Peter Kirschbauer (Vors.), Matthias Glück Aufsichtsratsvors.: Prof. Dr. Christof Hettich Firmensitz: 69190 Walldorf, Altrottstraße 31 AG Mannheim HRB 351761 / USt.-IdNr.: DE 198388516
jaxb2-plugin-bug.tar.gz
Description: Binary data
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email