The I placed an xsd:import element in my other XSD refering the namespace of the common.xsd.
But when trying to generate importing XSD via jaxb2-maven-plugin the common.xsd from the catalog is not processed.
I get an error:
[ERROR] file:/absolute/path/to/my/xsd/importing-the-common-definitions.xsd [23,67]
org.xml.sax.SAXParseException: src-resolve: Name 'myns:nameType' could not be resolves as 'type definition'-component.
How do I use catalogs with the jaxb2-maven-plugin?
Does jaxb2-maven-plugin support catalogs at all?
I have a XSD with some XML types to be used in differend other XSDs. I put this
common.xsd
in a Jar of its own along with acatalog.xml
as defined here: https://github.com/highsource/maven-jaxb2-plugin/wiki/Using-CatalogsThe I placed an
xsd:import
element in my other XSD refering the namespace of thecommon.xsd
.But when trying to generate importing XSD via
jaxb2-maven-plugin
thecommon.xsd
from the catalog is not processed. I get an error:How do I use catalogs with the
jaxb2-maven-plugin
? Doesjaxb2-maven-plugin
support catalogs at all?