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

Maven plugin execution order and classes bundling

I've been banging my head with maven plugin execution order and packaging of generated classes. I've a requirement of generating pojos from XSD with annotation and for that I'm using maven-jaxb2-plugin which consumes a binding.xjb (a xml file…
Akhil
  • 1,184
  • 1
  • 18
  • 42
0
votes
1 answer

Annotation not added to class level by maven-jaxb2-plugin

I'm trying to annotate pojos generated by jaxb and for that I'm using maven-jaxb2-plugin, I'm able to add annotations but not with default values I've below configuration for maven-jaxb2-plugin in my pom.xml
Akhil
  • 1,184
  • 1
  • 18
  • 42
0
votes
0 answers

Best Practice to Instantiate Hierarchical Child Objects in Jaxb DTO classes

I have created Jaxb DTOs using Maven profile. Something like this: class Parent { ChildOne one; } class ChildOne { ChildTwo two; } class ChildTwo { ChildThree three; } class ChildThree { ChildFour four; } The hierarchy roughly goes on till…
phoenixSid
  • 447
  • 1
  • 8
  • 22
0
votes
2 answers

How to update XML-TYPE for generated stubs

I am successfully generating java classes from multiple wsdl endpoints using maven-jaxb2-plugin. This is one execution: generateDelta
aurelius
  • 3,946
  • 7
  • 40
  • 73
0
votes
1 answer

Is there a way to ignore empty nodes in JAXB bindings file?

I am trying to create a generic .xjb bindings file to provide consistent Java classes generation from WSDLs / XSDs across multiple projects. We generate the code via maven-jaxb2-plugin (Made by @lexicore). The problem lies in the multiple projects…
Silver Quettier
  • 2,045
  • 2
  • 26
  • 53
0
votes
0 answers

Error with maven-jaxb2-plugin

Im simply trying to duplicate this tutorial from Spring's website with my own wsdl files. FYI I did remove the parent declaration which required me to add versions to the dependencies. Other then that and filling in wsdl locations its mostly copy…
owen gerig
  • 6,165
  • 6
  • 52
  • 91
0
votes
2 answers

maven-jaxb2-plugin ignoring configuration

I'm using maven 3.3.9 and the maven-jaxb2-plugin 0.13.1. But when I try to generate the Java classes, the plugin is not finding my XSD-file. My pom looks like this:
Lars Steen
  • 741
  • 1
  • 10
  • 15
0
votes
1 answer

Maven JAXB 2 Plugin - how to setup to use cross scheme dependencies

Using maven-jaxb2-plugin to generate JAXB classes for two WSDL schemas that are related to each other. The classes generated like this: com - accounts |- payments |- other maven-jaxb2-plugin is set up like this:
WildDev
  • 2,250
  • 5
  • 35
  • 67
0
votes
1 answer

x509 spring client, bad certificate

I developed a spring SOAP web service secured with x509 like it's described in the x-509-spring-rest-web-service-tutorial (I adapted it for the SOAP WS). It works fine. I can communicate with the service through the browser (to get WSDL or to check…
user1648825
  • 979
  • 11
  • 19
0
votes
0 answers

mapping anyType to String in JAXB

I need to generate java classes for 3rd party schema I received (and unfortunately cannot modify), that looks like that: ...
Jakub
  • 165
  • 2
  • 9
0
votes
1 answer

Multiple WSDL Urls generate source with maven-jaxb2-plugin

org.jvnet.jaxb2.maven2 maven-jaxb2-plugin 0.12.3 firstrun
idipous
  • 2,868
  • 3
  • 30
  • 45
0
votes
2 answers

Jaxb: How to specify a default class for an XSD element

When generating Java classes from a XSD, how can I specify that for some specific node, a specific and already existent Java class should be used instead of trying to generate one? Thank you very much.
Mr.Eddart
  • 10,050
  • 13
  • 49
  • 77
0
votes
0 answers
0
votes
1 answer

episode file for maven-jaxb22-plugin

I have a schema A.xsd that imports B.xsd and its one of the complex element . Now I have created the .episode file from compiling the B.xsd and used as input to A.xsd. But except for the , all other child elements…
ulab
  • 1,079
  • 3
  • 15
  • 45
0
votes
1 answer

Maven-site-plugin could not load generated sources (Jaxb)

I try to build my java Project with the maven:site plugin. For that I use a Jenkins Server and configure the mvn goals: clean install site My Pom has the following Plugins: ... org.apache.maven.plugins