我正在尝试从位于C:\ Program Files(x86)\ Intuit \ IDN \ Common \ tools \ validator
中的quickbooks提供的qbxml.xsd架构生成java jaxb类我正在运行以下命令:
xjc -d C:\dev\jaxb -p com.quickbooks.jaxb qbxml.xsd
但我收到以下错误:
[ERROR] src-resolve: Cannot resolve the name 'STRTYPE' to a(n) 'type definition' component.
line 5267 of file:/C:/Program%20Files%20(x86)/Intuit/IDN/Common/tools/validator/qbxml.xsd
[ERROR] src-resolve: Cannot resolve the name 'STRTYPE' to a(n) 'type definition' component.
line 5285 of file:/C:/Program%20Files%20(x86)/Intuit/IDN/Common/tools/validator/qbxml.xsd
[ERROR] src-resolve: Cannot resolve the name 'STRTYPE' to a(n) 'type definition' component.
line 5303 of file:/C:/Program%20Files%20(x86)/Intuit/IDN/Common/tools/validator/qbxml.xsd
[ERROR] src-resolve: Cannot resolve the name 'STRTYPE' to a(n) 'type definition' component.
line 5321 of file:/C:/Program%20Files%20(x86)/Intuit/IDN/Common/tools/validator/qbxml.xsd
Failed to parse a schema.
任何帮助都将不胜感激..这是我第一次生成JAXB类
先谢谢
答案 0 :(得分:0)
我使用了错误的xsd来生成类..根/父xsd文件似乎是qbxmlops.xsd
xjc -d C:\dev\jaxb -p com.quickbooks.jaxb qbxmlops.xsd
这生成了所有jaxb类。