jaxb-tools icon indicating copy to clipboard operation
jaxb-tools copied to clipboard

Specifying a schema/fileset does not override global schemaIncludes

Open bracketttc opened this issue 5 years ago • 0 comments

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>

bracketttc avatar Dec 03 '19 00:12 bracketttc