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
6
votes
2 answers

JAXB episode compilation with include does not work

I have 2 schemas A, B. I'm reusing some A elements in B. I do not use namespaces. I'm using org.jvnet.jaxb2.maven2 maven-jaxb2-plugin 0.9.0 I have have defined an inclusion of schema A…
Tian Na
  • 846
  • 2
  • 15
  • 30
6
votes
3 answers

XPath evaluation results in empty target node

I'm attempting to consume a WSDL and generate binding classes using maven-jaxb2-plugin. The WSDL is this, ... ...
Neill
  • 556
  • 2
  • 8
  • 18
6
votes
3 answers

maven-jaxb2-plugin forceRegenerate=false not working?

I'm trying to configure maven-jaxb2-plugin to only generate java if XSD changes. That doesn't seem to work because java classes are always regenerated. This is the plugin configuration :
joeleclems
  • 131
  • 1
  • 9
6
votes
2 answers

how to get maven-jaxws-plugin to generate @XmlElementWrapper on classes generated from xsd?

I am using maven-jaxws-plugin to generate java classes from my wsdl, schema. It is not generating the @XmlElementWrapper annotation in the generated classes. From this post I understand I nedd to use the jaxb-xew-plugin but am unable to get it…
6
votes
1 answer

JAXB - The schemaBindings customization is not associated with any schema element

I'm trying to generated Java classes from a set of XSD files using the Maven XJC plugin with a custom binding. The customization is added to prefix JAXB generated classes. When the maven build runs, however, the XJC plugin doesn't seem to recognize…
asgs
  • 3,928
  • 6
  • 39
  • 54
5
votes
1 answer

Java Code generation from XSD/WSDL for Jakarta 4.0.0 using Maven Plugin

I have wasted mutiple days trying to figure it out, how can something that seems pretty straightforward (generating code from a WSDL/XSD) be so extremly complicated. Are there any approaches? I feel I have tried them all, in diffrent versions using…
5
votes
1 answer

How do I tell Maven to not disregard namespace attribute in imported XSD?

I am using the mojohaus jaxb2-maven-plugin to generate Java sources out of xsd schema files. My pom.xml looks like this: ... org.codehaus.mojo jaxb2-maven-plugin
Matthias
  • 440
  • 3
  • 16
5
votes
0 answers

java.lang.NoClassDefFoundError with package-info

I build my project as one executable jar with Maven on Windows, and I want to run my jar file on Linux. I am receiving this error: 18:43:15.482 [http-nio-8080-exec-7] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet…
nm10
  • 61
  • 3
5
votes
1 answer

Resource ServletContext resource does not exist

I'm working on a project (spring boot) and I have to convert xml file to Java classes using the maven jaxb2 plugin. I'm following this link: the classes are generated the problem is when I try to unmarshall the xml I had this error: Resource…
5
votes
1 answer

maven-jaxb2-plugin fails with JAXB version attribute must be present

I have the following configuration for maven-jaxb2-plugin: org.jvnet.jaxb2.maven2
5
votes
2 answers

Jaxb2 regenerate classes with every mvn clean package

My pom looks like org.jvnet.jaxb2.maven2 maven-jaxb2-plugin 0.12.3
idipous
  • 2,868
  • 3
  • 30
  • 45
5
votes
0 answers

Error during source generation: "is not a part of this compilation. Is this a mistake for"

I have jenkins build machine with sources mounted on SSD drive. During compilation and source generation I'm getting following error: [ERROR] …
Nem
  • 336
  • 3
  • 8
  • 22
5
votes
0 answers

maven-jaxb2-plugin multiple schemas in different packages Error

I have a problem with maven-jaxb2-plugin . What I am trying to achieve is to generate-sources from x different wsdl's into different packages. I would like to avoid method with multiple so I could leave pom.xml untouched when I add…
patrykos91
  • 3,506
  • 2
  • 24
  • 30
5
votes
3 answers

jaxb2 goal is not invoked

I am using maven-jaxb2-plugin to generate some classes from xsd. It is defined in child pom as follows: maven-compiler-plugin
Kirill Kazoolin
  • 223
  • 1
  • 3
  • 12
5
votes
2 answers

xjc, maven-jaxb2-plugin: cryptic java.lang.NoSuchMethodException: javax.xml.bind.annotation.XmlElementRef.required()

I'm attempting to use maven-jaxb2-plugin to compile the XSDs at http://www.aptatcip.com/APTA-TCIP-S-01%204.0_files/Schema%20Set.zip Using this pom.xml, and the command line below (run from the parent folder), the compilation fails with a fairly…
denishaskin
  • 3,305
  • 3
  • 24
  • 33
1 2
3
21 22