mojohaus / jaxb2-maven-plugin

JAXB2 Maven Plugin
https://www.mojohaus.org/jaxb2-maven-plugin/
Apache License 2.0
103 stars 76 forks source link

SchemaLocation of multiple XSD files #297

Open jpgr79 opened 5 months ago

jpgr79 commented 5 months ago

I have multiple xsd files in src/main/xsd.

I am trying to chaange the classe name of one of those xsd elements.

I am getting the following error: [ERROR] file:/C:/.../src/main/xsd/global-bindings.xjb [26,46] com.sun.istack.SAXParseException2; systemId: file:/C:/.../src/main/xsd/global-bindings.xjb; lineNumber: 26; columnNumber: 46; "MyRequest.xsd" is not a part of this compilation. Is this a mistake for "file:/C:/.../src/main/xsd/MyRequest.xsd"? It looks like a bug, because if I use schemaLocation with the absolute path name it works. if i use in my pom, to point to a single xsd file, schemaLocation also works. I tried with jaxb-maven-plugin versions 2.2 and 2.5.