问题
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