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
0
votes
1 answer
JAXB classes generation from XSD schema results in a strange package structure
With the following plugin:
org.codehaus.mojo
jaxb2-maven-plugin
xjc
xjc
…

Nikolas Charalambidis
- 40,893
- 16
- 117
- 183
0
votes
0 answers
Auto generated classes using maven
I am trying to auto generate classes using xsd via maven plugin.
There are different schemas and for each schema I need to have different package created.
Also the auto generated classes should implement serializable and java.xml.bind.Element…

Vicky
- 104
- 1
- 9
0
votes
1 answer
How to generate XSD from classes using jvnet maven-jaxb2-plugin
Two questions
Where is the definitive guide web page/site?
Give an example of generating XSD from classes

Blessed Geek
- 21,058
- 23
- 106
- 176
0
votes
1 answer
Serialized XML is nested from auto-generated Java classes
Given a .xsd file, I had the strategy to use a Maven tool to generate Java classes from this, and then use Jackson to serialize the data.
I'm using:
org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.3 to generate the Java…

Stewart
- 17,616
- 8
- 52
- 80
0
votes
0 answers
How to create Java model with java.awt.image.BufferedImage as parameter using xsd
I want to create a model which contains the property of type java.awt.image.BufferedImage, I tried to create it but getting error as follows
src-resolve: Cannot resolve the name 'java.awt.image.BufferedImage' to a(n) 'type definition' component.
My…

Sat
- 3,520
- 9
- 39
- 66
0
votes
0 answers
Error consuming WS without ssl
I'm trying to consume a service that does not need a certificate.
It only receives username and password as the property of the request.
I'm using the maven-jaxb2-plugin plugin to generate the code.
I tried copying using the following commands:
mvn…

Junior Bezerra
- 39
- 7
0
votes
0 answers
change class name and package structure for generated jaxb classes
Request Schema -

Khuzi
- 2,792
- 3
- 15
- 26
0
votes
1 answer
Generate code from xsd, replace/remove suffix in name of resulting Classes
so I've got XSDs (out of my control) from which I generate java sources using the maven jaxb2 plugin (version 0.13.0) where each complex type has the suffix "structure", e.g. a "Connection" element is of the complex type "ConnectionStructure". I'd…

kerox___m
- 67
- 1
- 1
- 6
0
votes
1 answer
how to create common xsd generated java classes
I want to generate java classes through XSDs, I want to use/include one XSD file in another but when I include them in another XSDs same java class is generated in both the packages. I am also using maven-jaxb2-plugin plugin

Sat
- 3,520
- 9
- 39
- 66
0
votes
1 answer
How to create common xsd generated class among all packages
I have written a Office.xsd

Sat
- 3,520
- 9
- 39
- 66
0
votes
1 answer
How to deserialize an XML list?
I'm deserizaling the MPEG Dash schema using jaxb2.
The generation of the Java classes works great, however, part of the information in the Dash manifest is lost. Namely, data contained inside the ContentProtection element. Which looks something…

Alan Silva
- 47
- 1
- 10
0
votes
1 answer
ACCESS_EXTERNAL_SCHEMA in java 8 is not behaving based on the document
I am try to migrate my project from java7 to java8 , when building my project its failing because of the new ACCESS_EXTERNAL_SCHEMA restrictions introduced in java 8 , so the solution was to add additional parameter…

Amer Qarabsa
- 6,412
- 3
- 20
- 43
0
votes
1 answer
Multiple for the target namespace in single file
I'm using maven-jaxb2-plugin for generating java files from wsdl one. After running "generate-sources" goal I get the following error
[ERROR] Error while parsing schema(s).Location[
file:/home/*/src/main/resources/soap/binding.xjb{8,30} ].…

funny-shmunny
- 87
- 1
- 13
0
votes
1 answer
Generate enums of base int
I'm trying to generate enums from a simple-type of base int using the Maven maven-jaxb2-plugin. But no enum is being generated.
I can see that the generator is using the bindings-file, since it throws errors if it couldn't find a mapping.
When I…

user871611
- 3,307
- 7
- 51
- 73
0
votes
1 answer
Inheritance plugin for JAXB2 not working on simpleTypes
I have some trouble applying xjb inheritance bindings to a simpleType. Applying it to a complexType seems to work fine.
The error I get is:
compiler was unable to honor this implements customization. It is attached to a wrong place, or its…

Cloud
- 458
- 1
- 13
- 34