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
0 answers
jaxb binding simpleType with union doesn't create enum
I have the following schema which I would like to create an enum class
…

user293655
- 508
- 1
- 6
- 23
0
votes
2 answers
JAXB Generating unexpected tag name, returns type name
I have the issue that the XML I'm generating does not match what I would expect.
I have the following XSD...

jeff porter
- 6,560
- 13
- 65
- 123
0
votes
1 answer
duplicate element not is detected with maven jaxb/jaxb2 plugin
I'm using maven-jaxb-plugin and maven-jaxb2-plugin to compile a xsd file that has two elements with same name, but the code compiles without throws an error. The generated class don't have the co-related properties. See the generated class:
...
* …

M.Torres
- 119
- 1
- 1
0
votes
1 answer
Generate Set Java types from XSD "unbounded" complexTypes using JAXB
I have a requirement to generate POJO using JAXB from the following XSD (partial). The elements is a collection of domain type and I want this to be Set. I get List in generated pojo with the following XSD. How can I instruct…

Saifur
- 16,081
- 6
- 49
- 73
0
votes
0 answers
xsd element generation jaxb
I am using maven to generate java classes from xsd. Below is the xsd.
A data type for a base fault.
…

Vipul
- 545
- 1
- 8
- 30
0
votes
1 answer
SAXParseException creating an Enum in XSD
I'm having trouble constructing my first XSD file. I'm trying to generate Java POJO's bases on my XSD with jaxb2-maven-plugin.
To start, I've followed the example that I've seen this tutorial
This is my xsd file:

Jose A. Matarán
- 1,044
- 3
- 13
- 33
0
votes
0 answers
JSON to JAXB XML KEY VALUE attributes
I have a requirement to convert the Rest Dynamic JSon String to XML with key and value attributes and form the Jaxb Saop request.
Below is the Sample XMl format i am looking.
Can…

Java Backend Developer
- 129
- 1
- 1
- 13
0
votes
0 answers
Jaxb2 can't find xsd schemas on relative path
I have XSD schema importing another schema, the import looks something like this:
It only works like this,…

J H
- 1
- 1
0
votes
1 answer
Is there an equivalent to codehaus' plugin's for the maven-jaxb2-plugin?
jaxb2-maven-plugin has the option. Is there an equivalent in maven-jaxb2-plugin? What is the recommended way to include the schema file in the produced jar? I'm currently using Maven's native .

Balz Guenat
- 1,552
- 2
- 15
- 35
0
votes
0 answers
SOAP service working fine SOAP UI but parsing WSDL in Java code throws exception
SOAP service is working fine in SOAP UI but when I parsed WSDL, either calling direct from URL or from the classpath, two exceptions are thrown. I tried with 2 maven plugins cxf-codegen-plugin and maven-jaxb2-plugin but the exceptions are the same.…

sadia
- 305
- 1
- 7
- 18
0
votes
0 answers
How to generate wsdl java classes from url using jks?
I'm trying to create WSDL Java classes in Spring Boot application to consume SOAP WS. Service need the jks to work. I'm able to connect to it using SOAP UI. The question is how to grant access to this service configuring pom.xml file.
My current…

JavaOctopus
- 1
- 4
0
votes
0 answers
JAXB generated classes versus manual constructed classes - performances
We want to choose a manner to use for parsing and writing XML.
We try the generation with JAXB maven plugin.
The generated POJOs classes are not so well constructed compare of manual writing, but we can preserve a lot of time if we use them. (The…

Sofia
- 57
- 9
0
votes
0 answers
Autocreated java classes with maven JAXB and persistente customization
I'm generating java classes from an XSD schema.
I'm using JAXB 2.2.7 with maven.
in the pom.xml i've a profile and i use it when the XSD change. The build action rewrite all the java classes from scratch.
This is the pom profile:
…

Daniele Licitra
- 1,520
- 21
- 45
0
votes
1 answer
JAXB generating JAXBElement needed String
I had created java classes from wsdl using maven plugin, below mention the related entry in…

user630209
- 1,123
- 4
- 42
- 93