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
Is there a way to get specific endpoints from a WSDL?
We have an enormous WSDL that we develop against that ends up generating over 3,500 files and 31MB of code. This seems to prevent any meaningful work from getting done since VS Code doesn't seem to want to parse all those files.
We're using JAXB2 to…

bzbz
- 25
- 1
- 5
0
votes
0 answers
xsd conflict when using jaxb2-maven-plugin
I'm trying to revive a legacy project for my client. The project is pretty old and it uses the jaxb2-maven-plugin to generate some java classes from an xsd schema file.
org.codehaus.mojo
…

Ionut
- 103
- 9
0
votes
0 answers
Missing @XMLElement(required = true) annotation in XML schema Java generated class
I do have the following XML schema:
…

mariaILikeIt
- 11
- 6
0
votes
1 answer
Jaxb generation of value constructor for a single class
I have a collection of XSD's that I am the maven-jaxb2-plugin to generate the java classes. I have 1 class, that I need a value constructor on, however I do not want value constructors for any of the other generated classes. I have looked at…

Randy
- 21
- 3
0
votes
1 answer
StaleFile element not allowed with jaxb2 version 2
I'm upgrading our jaxb2-maven-plugin from version 1.5 to 2.5. After changing the schemaDirectory and schemaFiles to use the source tags it builds and works as before.
However the staleFile tag is being highlighted as an error in intellij with the…

Jane Hayes
- 115
- 2
- 10
0
votes
1 answer
How to advise maven-jaxb2-plugin to use same class in two places?
I'm using maven-jaxb2-plugin to generate JAXB classes. I have no control over the WSDL or XSD.
The XSD specifies either a single "MyObject", or a parent object containing a list of "MyObjects". I know they're the same. But the plugin doesn't…

McJava1967
- 15
- 2
0
votes
0 answers
Generating code from yaml - more reliable than Swagger codegen?
(Sample) Problem:
When a yaml source contains conflicting definitions, e.g. myClass and MyClass both generating into a java class MyClass with one overwriting the other, no warning or error occurs.
Other similar cases can occur the same way (e.g.…

Zsar
- 443
- 3
- 14
0
votes
1 answer
JAXB: two xsd with two complextype with the same name
This is my first xsd (catalegs-schema.xsd):

Jordi
- 20,868
- 39
- 149
- 333
0
votes
1 answer
Is there a way to pass Class as a Parameter to the JAXB XMLAdapter or access Getter method from another class
I am trying to create an XMLAdapter class for one of my objects. I need to access Getters from another class so that some of the objects can be populated from that class's Getters` but I am unable to do so.
Basically, I would like to access my Child…

BATMAN_2008
- 2,788
- 3
- 31
- 98
0
votes
1 answer
JAXB XMLAdapter: Is there a way to convert this method into JAXB XmlAdapter
I have a JSON file that I am trying to convert into XML using the JAXB annotation approach. Everything is working fine now and I able to convert the JSON to XML. Now I am trying to refactor the code a little bit so that my class would look clean.…

BATMAN_2008
- 2,788
- 3
- 31
- 98
0
votes
2 answers
Java JAXB Marshalling the elements to the objects in inner class
I trying to use the JAXB annotation to convert the JSON data to XML. I have the JSON somewhat like this:
{
"Employee": {
"name": "Tanmay",
"Email": "tanmaypatil@xyz.com",
"Address": {
"City": "Florida",
…

BATMAN_2008
- 2,788
- 3
- 31
- 98
0
votes
1 answer
jaxb2: Ignores annotation
This is my maven-jaxb2-plugin configuration:
org.jvnet.jaxb2.maven2
maven-jaxb2-plugin
0.14.0
…

Jordi Cabré
- 13
- 2
0
votes
1 answer
maven jaxb2 plugin is generating nothing
It's not clear to me if I'm able to use maven-jaxb2-plugin on a jdk11 maven project.
My pom.xml and mvn are using jdk11.
I know jaxb is not distributed with jdk 11.
I'm trying to generate code from wsdl:
…

Jordi
- 20,868
- 39
- 149
- 333
0
votes
0 answers
What xml parsing library to use in Spring boot?
I am building a spring boot application which accepts xml as input and produces xml as output. I can't use the spring boot default xml converter for parsing the input. I use jaxb library to parse them.
What I am doing is,
I am generating java…

VIJAYKUMAR SUBRAMANI
- 53
- 1
- 11
0
votes
1 answer
maven jaxb2 plugin - can I avoid jwsdp dependencies
I have a maven build which auto-generates a set JAXB java source files. The basic config is
org.jvnet.jaxb2.maven2
maven-jaxb2-plugin
0.7.5
…

emeraldjava
- 10,894
- 26
- 97
- 170