This Maven 2 plugin wraps the JAXB 2.x XJC compiler and provides the capability to generate java sources from schemas.
Questions tagged [maven-jaxb2-plugin]
325 questions
1
vote
0 answers
Reuse of JAXB bindings in multiple projects
I'm looking for a way to reuse bindings in order to avoid re-generation of classes each time I use types from XSDs of other projects.
I'm using maven and the maven-jaxb2-plugin.
Let say I have two projects A and B.
Project A defines a.xsd and is…

user3013432
- 11
- 2
1
vote
1 answer
Spring WebServiceTemplate incorrectly using Xerces to unmarshal XML response
i'm working with Spring WST and consuming a WCF SOAP 1.1 web service. I've used Apache's CXF Maven plugin to generate the web service client from the WSDL. When i inspect the generated classes it looks as JAXB has been used and everything is as…

cdugga
- 3,849
- 17
- 81
- 127
1
vote
1 answer
JAXB binding to override or remove XMLSchemaType xs:token
I am generating model classes from an xsd using the maven jaxb2 plugin. The xsd specifies certain elements with type=xs:token as follows:
This results in the following annotations being added to the…

supermethod
- 351
- 3
- 8
1
vote
1 answer
how to generate @TABLE tags using jaxb2 maven plugin
Hi I have followed some tutorials and written a schema which is as follows :
…

Ruby
- 873
- 5
- 20
- 47
1
vote
1 answer
using maven coordinate style episodes in wsimport
I'm building (multiple) complex webservice with base XSD types from all kinds of standards (GML, SWE, XLINK, etc). Now, I would like to break up the compilation into more steps, preferrably one for each of the standards I'm using.
Advantages:
1) I…

Sjaak
- 3,602
- 17
- 29
1
vote
1 answer
maven-jaxb plugin - Two classes have the same XML type name
Following problem, I have 2 WSDL files which from I have to generate Stubs. But both WSDL files contains same XML type names (second WSDL is a further stage of first WSDL).
I generate the stubs with following configuration:
..
…

user1731299
- 567
- 3
- 10
- 24
1
vote
1 answer
JAXB output not in proper format
I Have a problem with marshalling the code as expected XML
public void xmleg() throws XMLStreamException
{
XMLOutputFactory factory = XMLOutputFactory.newInstance();
XMLStreamWriter writer =…

user2224083
- 33
- 1
- 4
1
vote
0 answers
maven plugins conflict
I am a newbie to maven. I have two maven plugins in my maven project, when I do generate sources one of them generates sources all the time (jaxb2-maven-plugin) but other doesn't (wsdl2java) generate sources. They are conflicting with each other. I…

user2124733
- 51
- 1
- 1
- 4
1
vote
2 answers
JAXB - marshalling with recursive dependency
is anybody try to marshal JAXB object with recurisive referency? I have following class:
public class A {
private Long id;
private String name;
private List aList;
}
and I'd like to marshall it to:
...
...
…

user1912592
- 43
- 1
- 5
1
vote
1 answer
generate seriallized jaxb objects
I have read couple of post on how we can generate serilazed jaxb
objects i got the configuration

Amruta
- 41
- 1
- 8
1
vote
4 answers
com.sun.tools.xjc.reader.Ring.get(Ring.java:113)
I am New to Maven, I have created a Maven Project, which will have only schema in it. My intention is to keep my all XSD in this project , Compile and create the jar of JAXB generated class. Below is my POM

Kumar
- 1,106
- 4
- 15
- 33
1
vote
1 answer
Getting Started with Maven + Jaxb project + IntellijIdea
I am complete new to IntellijIdea and i am looking for some step-by-step process to set up a basic project.
My project depends on Maven + Jaxb classes so i need a Maven project so that when i compile this project, the JAXB Objects are generated by…

Em Ae
- 8,167
- 27
- 95
- 162
1
vote
1 answer
JAXB maven plugin Two declarations cause a collision in the ObjectFactory class
I am using jaxb maven plugin to generate classes from schemas. I have 3 schemas which are separated in 3 maven modules.
Schema A in a.jar
Schema B in b.jar
Schema C in c.jar which imports a.jar and c.jar and use them.
A & B have some declarations…

Mohammed
- 115
- 1
- 13
1
vote
1 answer
Known to this context
My Java RESTful web service (Spring 3.1.1 and CXF 2.5.2) prints to stdout on every request
SystemId Unknown; Line #-1; Column #-1; class X nor any of its super class is known to this context.
sometimes multiple times. Note that no exception is…

Chris Eineke
- 386
- 1
- 4
- 4
0
votes
1 answer
generating classes in different packages using jaxb and maven
this question is very similar to this one but my case is a bit different
I have a single directory which contains many xsd and wsdl. some of these need to be generated into different packages.
I have configured my pom.xml as following:
…

santiagozky
- 2,519
- 22
- 31