I have two circuits A, B. I am reusing some elements of A in B.
I do not use namespaces.
I use
<groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <version>0.9.0</version>
I defined the inclusion of circuit A in circuit B as:
<xs:include schemaLocation="classpath:my.schema.A.xsd"/>
and the directory is
REWRITE_SYSTEM "classpath:my.schema.A.xsd" "maven:my.schema:schema-a!/A.xsd"
Jaxb configuration:
<configuration> <generatePackage>my.schema.b</generatePackage> <schemaIncludes> <includes>B.xsd</includes> </schemaIncludes> <episodes> <episode> <groupId>my.schema</groupId> <artifactId>schema-a</artifactId> </episode> </episodes> <catalog>src/main/catalog/catalog.cat</catalog> </configuration>
The problem is that whenever I specify an episode dependency, the circuit does not generate any classes, even if it contains some B elements that I want to generate for the classes.
[INFO] Parsing input schema(s)... [INFO] Compiling input schema(s)... [INFO] Cleaning package directories. [INFO] Finished execution.
When I delete an episode, it works well and generates classes for Scheme A, which I really want to avoid.
Do you have any suggestions?
The sample was published in the episodic assembly Jaxb
source share