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
changing the type of a element with jaxb/maven
I am trying to generate java classes from a XSD with a XJB. I am running maven plugin maven-jaxb2-plugin in 0.13.1 version.
I want to replace an element type by an other type.
Here is an extract of my xsd file:
…

Rot Ulet
- 11
- 2
0
votes
2 answers
How to generate classes in jaxb from WSDL with HTTPS LINK?
I need to consume a web service from a third party. The WSDL is provided by the third party on a https link.I have tried to generate the classes using maven-jaxb2plugin but it gives me an error.I need to generate classes from a https link using…

briantaurostack7
- 1,193
- 2
- 14
- 36
0
votes
1 answer
Jaxb unmarshalling of abstract list in abstract class
I am using jaxb plugin (rg.jvnet.jaxb2.maven2) to generate my java classes. So ,I am using xsd which automatically generates java classes. I want my solution to be abstract.
I have a XML
…

user2985842
- 437
- 9
- 24
0
votes
1 answer
jaxb multiple class generated for same type incase of external bindings
I have following schema and corresponding bindings file. I use jaxb2 maven plugin to generate JAXB classes.
person.xsd
…

ulab
- 1,079
- 3
- 15
- 45
0
votes
1 answer
multiple schemas in same .xjb for maven-jaxb21-plugin
I'm trying to use inheritance option using jaxb2-commons and it works fine for one schema specified in the maven plugin. But if I add another schema to same .xjb file, the pom.xml shows error as Unable to parse schemas exception.
I suspected that it…

ulab
- 1,079
- 3
- 15
- 45
0
votes
1 answer
maven-jaxb2-plugin: How to use my own EqualsStrategy
I'm using maven-jaxb2-plugin to generate the equals and hashCode methods.
I have implemented own strategies, derived from JAXBEqualsStrategy and JAXBHashCodeStrategy.
Is there a way to tell the plugin to use those strategies instead of the default…

cbo
- 96
- 5
0
votes
1 answer
XML & JAXB: pass attribute into value
I have a large amount of objects generated through JAXB (maven-jaxb2-plugin) and annotate them with the jaxb2-annotate-plugin. These classes may define a RelationType and I'd like to annotate them with the corresponding @RelationType annotation. I…

Jaims
- 1,515
- 2
- 17
- 30
0
votes
2 answers
Using modular JAXB compilation does not (seem to) work when location is not an URL
I have 2 schemas: a.xsd and b.xsd which has a dependency on a.xsd (episode).
Schemas are split in different maven projects and packages.
Originally, b.xsd imports a.xsd like this (I don't want to change it):

Xavier Dury
- 1,530
- 1
- 16
- 23
0
votes
1 answer
maven-jaxb2-plugin - ignore ssl error
I am using maven-jaxb2-plugin and I get the following error
Caused by: java.security.cert.CertPathValidatorException: timestamp check failed
I understand the certificate expired and I do not manage the webservice. So how do I ignore the SSL error.…

Mukun
- 1,756
- 10
- 30
- 57
0
votes
1 answer
jaxb2 simplify plugin elements not simplified
I have tried to convert XSD to JAXB classes using mave-jaxb2 plugin and jaxb2-basics simplify plugin.
The configuration in pom.xml is available in this post
sample.xsd (complex choice type)
…

ulab
- 1,079
- 3
- 15
- 45
0
votes
1 answer
JAXB2 maven plugin in eclipse shows error
I'm using JDK 1.6 (due to dependencies) and to generate classes from xsd, I have added maven-jaxb2 plugin as shown below in pom.xml.
But the eclipse (Kepler) complains as below.
Error parsing the command line [[-Xsimplify, -episode,
…

ulab
- 1,079
- 3
- 15
- 45
0
votes
0 answers
Why is gradle-jaxb-plugin catenating namespace URL with file spec?
Trying to move from maven-jaxb2-plugin to gradle-jaxb-plugin.
Here is my script:
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.github.jacobono:gradle-jaxb-plugin:1.3.6'
}
}
apply plugin:…

user447607
- 5,149
- 13
- 33
- 55
0
votes
1 answer
Generating JAXB components for WSDL using org.jvnet.jaxb2.maven2:maven-jaxb2-plugin
I am trying to follow the example given at http://spring.io/guides/gs/consuming-web-service, ofcourse, with the WSDL of my own. However, I am unable to see any JAXB classes being generated. There are no errors or useful debug information…

skis
- 71
- 1
- 6
0
votes
2 answers
Maven maven-jaxb2-plugin and HTTP 302
I'm using Maven 3.3.3 and maven-jaxb2-plugin version 0.12.1 to generate java classes from XSD schema. The address where the XSD is returns HTTP 302 and the plugin throws:
[ERROR] Error while parsing schema(s).Location […

kovica
- 2,443
- 3
- 21
- 25
0
votes
1 answer
Using maven jaxb2 plugin, modular compilation using episode and catalog throws Malformed URL error
My project contains A.xsd which imports schema as follows from B.xsd which is part of another project:
I am trying to use…

Shrinidhi Achar
- 33
- 6