-
Notifications
You must be signed in to change notification settings - Fork 102
Closed
Description
The latest 3.0.1 version of the jaxb-maven-plugin logs an invalid/incorrect error message to the console during execution. Specifically I see the message [ERROR] Could not find JAXB 2.x API classes. Make sure JAXB 2.x API is on the classpath.
It looks like maven-plugin/plugin-core/src/main/java/org/jvnet/jaxb/maven/AbstractXJCMojo.java code still contains some string versions of the old javax.xml.bind packages which the code uses in an attempt to instantiate the classes. The strings are used in the logApiConfiguration() function of the AbstractXJCMojo class.
The constants I think still needing updating:
- XML_SCHEMA_CLASS_QNAME
- XML_SCHEMA_RESOURCE_QNAME
- XML_ELEMENT_REF_CLASS_QNAME
The logApiConfiguration function may need some rework as well since it's attempting to resolve the JAXB version for logging purposes.