Questions tagged [maven-jaxb2-plugin]

This Maven 2 plugin wraps the JAXB 2.x XJC compiler and provides the capability to generate java sources from schemas.

325 questions
0
votes
1 answer

How do I tell the maven-jaxb2-plugin to run xjc on all .xsd files in a maven dependency?

I'm using the maven-jaxb2-plugin and my .xsd files are in a maven dependency. The documentation shows that you specify a .xsd in a maven dependency like this
Dean Schulze
  • 9,633
  • 24
  • 100
  • 165
0
votes
1 answer

Excluding xsd element from unmarshalling if already created?

I am getting below error while maven build using jaxb(maven-jaxb2-plugin) compiler A class/interface with the same name "org.somePackage.customer" is already in use. Use a class customization to resolve this conflict. at…
emilly
  • 10,060
  • 33
  • 97
  • 172
0
votes
1 answer

How to disable hostname verification or allow all certificates when using maven-jaxb2-plugin?

Currently, I'm using the maven-jaxb2-plugin to generate Java artefacts while consuming a soap web services via SSL. I configured my pom.xml per the answer here. But the certificate I used didn't contain any DNS/IP subjects of server. Then there will…
0
votes
1 answer

Cannot resolve the name to a(n) 'element declaration' component

while compiling maven-jaxb2-plugin I get below error [INFO] --- maven-jaxb2-plugin:0.8.3:generate (default) @ customer-project --- [ERROR] Error while parsing schema(s).Location [ file:....Customer.xsd{12,97}]. org.xml.sax.SAXParseException:…
emilly
  • 10,060
  • 33
  • 97
  • 172
0
votes
2 answers

maven-jaxb2-plugin not compiling xsd on linux machine but works on windows?

Here is code snippet from pom.xml org.jvnet.jaxb2.maven2 maven-jaxb2-plugin 0.8.3 Here is the…
emilly
  • 10,060
  • 33
  • 97
  • 172
0
votes
0 answers

maven-jaxb2-plugin episodes in same pom

I have been looking around a lot regarding this issue. I found some suggestions, but I cannot make them work, so maybe I'm doing something wrong. Problem I have inter-depending XSDs in the same maven project. I have commonA.xsd & commonB.xsd which…
Dimitrios K.
  • 1,008
  • 13
  • 36
0
votes
1 answer

Maven Fails to Generate JAXB Classes Using Nested Schemas

I am trying to get Maven to generate a JAXB binding using nested xml schemas: schema A imports schema B. Schema B imports schema C. Everything builds just fine if objects in schema A reference objects in schema B that do not depend on a schema C…
wakespeak
  • 20
  • 3
0
votes
1 answer

Maven JAXB plugin

I am using maven jaxb2 plugin to generate the classes from xsd. However, the XJC generates the classes each time, I run mvn clean install, though I have not modified the XSD /binding files. PS:I have to do clean install as it's required for other…
TheCodeGladiator
  • 173
  • 3
  • 12
0
votes
1 answer

org.jvnet.jaxb2.maven2:maven-jaxb2-plugin : same file , multiples results

I'm using the org.jvnet.jaxb2.maven2:maven-jaxb2-plugin in version 0.12.3, and I have the following problem. I generate a java files from an xsd files. I commit and push it on our git repository. I launch the same generation again (we use…
user3560649
  • 91
  • 2
  • 3
0
votes
1 answer

How to annotate enum using jaxb2-basics-annotate?

I'm using maven-jaxb2-plugin and jaxb2-basics-annotate plugins to auto generate POJOs from my xsd. I've successfully generated annotations in POJOs. I need to apply an annotation to a method in an enum but cannot figure out how to do it. xsd has, …
0
votes
1 answer

How to add include=JsonSerialize.Inclusion.NON_NULL to @JsonSerialize using annox plugin

We are generating JAXB objects from xsd, using maven plugin maven-jaxb2-plugin. Below are dependencies we have jaxb2-basics - 0.6.2 jaxb2-basics-annotate - 0.6.2 In our maven file, we also included -Xannotate and -XtoString
KumarRaja
  • 121
  • 4
  • 9
0
votes
1 answer

maven-jaxb2-plugin: how to accomplish this xjc command-line in the pom.xml?

Because of various issues with the XSDs I need to compile (described in other SO posts), I have a bindings file and also a local extension schema. The following command line works correctly, but I'm having trouble figuring out the right pom.xml…
denishaskin
  • 3,305
  • 3
  • 24
  • 33
0
votes
0 answers

How to manage multiple schema maven-jaxb2-plugin

this is the first time that I'm using maven-jaxb2-plugin and I'm becoming crazy with this trouble. I have two .xsd schema from which i get two java packages. This is my maven-jaxb2-plugin configuration
Skizzo
  • 2,883
  • 8
  • 52
  • 99
0
votes
1 answer

Illegal pattern character with maven-jaxb2-plugin

I'm new of maven this is the first time that I'm using maven-jaxb2-plugin to generate java classes from a .xsd schema. This is my pom.xml: 1.6
Skizzo
  • 2,883
  • 8
  • 52
  • 99
0
votes
1 answer

JaxB transforming empty element into null when unmarshalling

I have a WSDl element something like : in the SOAP request if i send empty element for listElement like : Then JaxB is…
remo
  • 487
  • 3
  • 10
  • 22
1 2 3
21
22