users@maven-jaxb2-plugin.java.net

How to replace the parser implementation

From: Crazy Doc <crazydoc_at_gmx.net>
Date: Tue, 05 Feb 2013 23:18:33 +0100

Hi!
I want to use Xerces 2.11.0 in my project to validate a XSD 1.1 document.

From a howto, I know that I have to replace the parser implementation by setting "-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl"

But how to give the parameter to the execution environment of maven-jaxb2-plugin (0.8.2)?

If I add it via <args>-tag, I get a "unknown parameter" exception.

If I add it to the "mvn" commandline the Xerces libs need to be in the classpath of the hole maven process, not only in the build execution environment.
But the other developers schould not have to specially configure their environment to build this artifact.