jaxb-tools
jaxb-tools copied to clipboard
Specifying a schema/fileset does not override global schemaIncludes
Hypothetically, say that you have multiple projects that reference a common set of schemas and you only want to build an explicitly listed subset. The following configuration snippet should limit xjc
to compiling the Good.xsd
schema:
<schemas>
<schema>
<fileset>
<includes>
<include>Good.xsd</include>
</includes>
</fileset>
</schema>
</schemas>
However, the actual behavior appears to be that the <schemaIncludes>
are still in effect and to prevent the plugin from pulling in and compiling everything matching *.xsd
, you have to override <schemaIncludes>
in your configuration as follows:
<schemaIncludes></schemaIncludes>