How to use Xerces while generating sources from XSD 1.1 with maven

烂漫一生 提交于 2019-12-12 05:28:22

问题


I have a XSD file with assertion tags. I have read that Xerces supports a XML Schema 1.1 draft with these tags.

How can I use an actual Xerces version, instead of the standard Java implementation, in my maven build.


回答1:


An old way to use the Xerces version was adding those parameters. I do not know if it could still work.

-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
-Djavax.xml.parsers.SAXParser=org.apache.xerces.jaxp.SAXParserImpl


来源:https://stackoverflow.com/questions/14816544/how-to-use-xerces-while-generating-sources-from-xsd-1-1-with-maven

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!