Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SchemaLocation of multiple XSD files #297

Open
jpgr79 opened this issue Jan 27, 2024 · 0 comments
Open

SchemaLocation of multiple XSD files #297

jpgr79 opened this issue Jan 27, 2024 · 0 comments

Comments

@jpgr79
Copy link

jpgr79 commented Jan 27, 2024

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

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

<jaxb:bindings schemaLocation="MyRequest.xsd">
<jaxb:bindings node="//xs:element[@name='MY_REQUEST']">
<jaxb:class name="CustomRequest" />
</jaxb:bindings>
</jaxb:bindings>

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant