Episodes allow the JAXB-processor detect already generated models, and therefore prevent duplicate generation of classes. This is useful when e.g. a project uses imported libraries constist of JAX-generated (and customized) classes which should not be regenerated by the project.
Questions tagged [jaxb-episode]
11 questions
16
votes
2 answers
Resolving type definitions from imported schema in XJC fails
I've got this API using JAXB to conveniently use object models, generated from XML Schemas by the XJC (XML-to-Java) compiler, through named references. It abstracts the creation of JAXB contexts and finding ObjectFactory methods away by all sorts of…

G_H
- 11,739
- 3
- 38
- 82
6
votes
2 answers
JAXB episode compilation with include does not work
I have 2 schemas A, B. I'm reusing some A elements in B.
I do not use namespaces.
I'm using
org.jvnet.jaxb2.maven2
maven-jaxb2-plugin
0.9.0
I have have defined an inclusion of schema A…

Tian Na
- 846
- 2
- 15
- 30
4
votes
3 answers
Maven Jaxb Generate Fails When Compiling A Module That Depends On Multiple Modules
I have an Eclipse Maven project consisting of multiple modules, some of which contain Xml schemas that I want to generate classes for (using Jaxb). My project layout is as follows:
schemas\core (pom)
schemas\core\types (jar)
schemas\vehicle…

Jan Tacci
- 3,131
- 16
- 63
- 83
3
votes
1 answer
Instructing wsimport/jaxb to use existing model/domain classes
I humbly ask for your help in step-by-step way.
I'm working on a project which is managed by apache maven.
The project has several submodules
/pom.xml
/model/pom.xml
/server/pom.xml
/client/ws/pom.xml
/client/vaadin/pom.xml
server and ws depends…

termil0r
- 131
- 2
- 14
3
votes
2 answers
maven-jaxb2-plugin episode of same project in Maven, possible?
I have a basic.xsd and two other A.xsd and B.xsd. A.xsd and B.xsd get converted into two different java packages, therefore I need two Maven executions of the same plugin.
Both XSDs refer to basic.xsd for some shared classes. If basic.xsd would come…

Franz Kafka
- 10,623
- 20
- 93
- 149
2
votes
2 answers
How to exclude generating of episode file in jaxb2-maven-plugin version 2.5.0?
I use the xjc goal of the jaxb2-maven-plugin to generate Java classes from a set of xsd files.
A minimal, complete and verifiable example would be a Maven project with the following pom.xml file:

Magnilex
- 11,584
- 9
- 62
- 84
2
votes
1 answer
JAXB separate episodes with annox customizations fails : SAXParseException2
I have 2 maven modules.
First one contains only a xsd schema to generate base POJO classes.
Second on contains a xsd schema that imports first one with a catalog file and generate new POJO classes.
Both generation works.
Now, I add annotations to…

Nelson G.
- 5,145
- 4
- 43
- 54
1
vote
1 answer
JAXB mixing episodes and xjc:javaType in jar library
If got a Java library which other projects depend on (.jar dependancy through Maven). In this library there is an XSD-file which defines some xs:simpleTypes which are also annotated with xjc:javaType elements mapping the simple types to already…

Franz Kafka
- 10,623
- 20
- 93
- 149
0
votes
0 answers
xjc fails on imported schema when using episodes due to property customization
I have two schemas a.xsd and b.xsd. b imports a. On one element, a customizes the JAXB compilation.
a.xsd:

Balz Guenat
- 1,552
- 2
- 15
- 35
0
votes
1 answer
episode file for maven-jaxb22-plugin
I have a schema A.xsd that imports B.xsd and its one of the complex element . Now I have created the .episode file from compiling the B.xsd and used as input to A.xsd. But except for the , all other child elements…

ulab
- 1,079
- 3
- 15
- 45
0
votes
1 answer
Using maven jaxb2 plugin, modular compilation using episode and catalog throws Malformed URL error
My project contains A.xsd which imports schema as follows from B.xsd which is part of another project:
I am trying to use…

Shrinidhi Achar
- 33
- 6