When I run the jaxb2-maven-plugin on a legacy xsd it throws this Exception:
Current configuration of the parser doesn't allow a maxOccurs attribute value to be set greater than the value 5,000
Googling this error shows that this is a limit that was put on jaxp for security purposes. It can be disabled in code like this
SAXParserFactory spf = SAXParserFactory.newInstance();
spf.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING,false);
I can't change the xsd. How do I disable this when calling running the jaxb2-maven-plugin?