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

Unable to Parse Schema when CommonTypes are Not Included #49

Open
nijogeorgep opened this issue May 20, 2020 · 0 comments
Open

Unable to Parse Schema when CommonTypes are Not Included #49

nijogeorgep opened this issue May 20, 2020 · 0 comments

Comments

@nijogeorgep
Copy link

nijogeorgep commented May 20, 2020

I have few XSD files, which has commonTypes included in some of the files and some are not.
<xsd:include schemaLocation="common/CommonTypes.xsd"/>

There is also a binding file where this commontype is defined.

<bindings schemaLocation="../common/CommonTypes.xsd"> <bindings node="//xsd:complexType[@name='SegmentIDRef']"> <class name="SegmentIDRefTypeFromCommonTypes"/> </bindings> </bindings>

I'm not able to parse the files which have no common types included. The xjc parsing gives me the following error

[ant:xjc] [ERROR] 'Address' is already defined [ant:xjc] line 133 of file:/Users/a-8845/Documents/GIT_CODE_BASE/air-farelogix-pad-service/src/main/resources/schemas/farelogix/CCReverseAuthorizationRS.xsd [ant:xjc] [ant:xjc] [ERROR] (related to above error) the first definition appears here [ant:xjc] line 52 of file:/Users/a-8845/Documents/GIT_CODE_BASE/air-farelogix-pad-service/src/main/resources/schemas/farelogix/CCReverseAuthorizationRQ.xsd

How can I prevent this issue? Can someone help? This is working with maven and it is giving the error in Gradle build

Sample App:
spring-gradle-app-share.zip

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