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
5
votes
3 answers
maven-jaxb2-plugin (maven) generated date and time
I'm trying to remove the generated date and time from files generated with plugin maven-jaxb2-plugin. Is-it possible?
Part of pom.xml :
org.jvnet.jaxb2.maven2
…

joeleclems
- 131
- 1
- 9
5
votes
3 answers
referencing/including xsd files in a jar
I want to add an xsd file to our project that relies on types defined in another xsd that is in a jar. We use jaxb to generate Java classes from the xsds.
How do i refer to SchemaContainingFooTypeIsInaJAR.xsd so that 'FooType' resolves correctly and…

charudatta
- 409
- 1
- 7
- 15
4
votes
3 answers
Generating JAXB class from XSDs with similar attribute names
I use maven-jaxb2-plugin to generate jaxb annotated classes from xsd. I have many xsd files like those:
…

Oleg Kandaurov
- 316
- 1
- 6
- 12
4
votes
4 answers
Insert custom setter in maven-jaxb2-plugin
I'm using the org.jvnet.jaxb2.maven2:maven-jaxb2-plugin to create POJOs from XSD schema files.
Now I want to insert something like a custom setter. It should trim all Strings and should remove certain characters.
Do you know how to do this?
The…
user321068
4
votes
1 answer
Cannot generate source files from XSD files using Maven?
I have this wsdl schema. I need to generate source code files from that WSDL schema. I tried many many different things, but couldn't get to generate Java stubs. In this post I'll try to outline only the last and most relevant approach I took. Also,…

Wrapper
- 794
- 10
- 25
4
votes
0 answers
Failed to compile input schema(s)! Error messages should have been provided
I want to consume a SOAP web service using Spring Boot. For this purpose, I have been given one WSDL URL by the company. I have just changed the company name with test because I cannot expose the company name but URL is valid. When I am clicking…

Altaf Ansari
- 726
- 2
- 7
- 18
4
votes
1 answer
AutoNameResolution in maven-jaxb2-plugin
I am not able to get AutoNameResolution to work in maven-jaxb2-plugin.
Below is my pom file
org.jvnet.jaxb2.maven2
maven-jaxb2-plugin
0.13.2
…

Manoj
- 412
- 2
- 6
- 18
4
votes
1 answer
How to make maven-jaxb2-plugin to ignore generating class if it is already exist in my project source
I am using maven jaxb2 plugin to generate java classes from xsd.I have a requirement that it should not generate the class if class already exist in my source.
Is there anyway can we configure to ignore the pojo generation if it is already…

chandra
- 41
- 4
4
votes
1 answer
Is there a way to configure JAXB plugin to append "get" for boolean getter method instead of "is"
I was using the below mentioned JAXB plugin in my project
com.sun.tools.xjc.maven2
maven-jaxb-plugin
1.1.1
Which appends "get" for boolean element. But on migrating to new…

Developer
- 534
- 1
- 11
- 21
4
votes
2 answers
JAXB 2.1 implementing Comparable for the generated Class
Using Jaxb 2.1 to generate java code from .xsd
jaxb2-basics plug-in is used
Wants to have generated Class Fragment to implement Comparable
public class Fragment implements Serializable, Comparable {
...
public int…

Rao
- 20,781
- 11
- 57
- 77
4
votes
1 answer
Generating classes from multiple wsdl files using maven-jaxb2-plugin
I can generate classes from one wsdl file like this:
org.jvnet.jaxb2.maven2
maven-jaxb2-plugin
0.12.3
…

Wlad
- 410
- 1
- 9
- 27
4
votes
1 answer
JAXB how to resolve 'is already defined' error when two XSD's of same namespace declare the same element
So I have the following bindings.xjb to load a top level XSD that loads two child XSD's (both children have the same namespace).
Now the two child XSD's (lets call them childA and childB)…

jeff porter
- 6,560
- 13
- 65
- 123
4
votes
3 answers
Eclipse error message for jvnet maven-jaxb2-plugin version 0.13.0
I am trying the sample JAXB Maven project with jvnet maven-jaxb2-plugin from GitHub https://github.com/highsource/maven-jaxb2-plugin/releases. I am using the latest version 0.13.0 and downloaded…

dunfa
- 509
- 1
- 10
- 19
4
votes
2 answers
Spring toolsuite shows error on for maven-jaxb2-plugin
I am using Spring Tool Suite version 3.7.0.RELEASE and I'm trying out an import of a WSDL offered by Amazon. The import succeeds, but Eclipse gives an error message on the tag.
I am using the following pom.xml:

Kristof
- 1,684
- 2
- 23
- 49
4
votes
1 answer
Generating code with maven-jaxb2-plugin does not work with the same configuration after v0.12.0
The same pom.xml is working with maven-jaxb2-plugin v0.11 but not with v0.12.
org.jvnet.jaxb2.maven2
maven-jaxb2-plugin
…

nicolas
- 385
- 1
- 2
- 12