Questions tagged [jaxb2-maven-plugin]

This plugin uses JAXB2 to generate Java classes from XML Schemas (and binding files) and to create XML Schemas for existing Java classes.

The Java Architecture for XML Binding (JAXB) enables translation between Java classes and XML documents. JAXB2 is specified by JSR-222.

The JAXB-2 Maven Plugin requires Maven 2+ and JDK 1.5+ and makes use of the JAXB Binding Compiler (xjc)

The plugin defines two main goals (see official documentation for more goals)

  • jaxb2:xjc - runs the xjc compiler to generate Java classes from XML Schema(s) and binding file(s)
  • jaxb2:schemagen - generates XML Schemas from JAXB annotated Java classes
173 questions
0
votes
2 answers

unable to generate jaxb .xsd to java classes in goal phase

Java - jaxb - maven plugin I have maven based web application, in pom i have following plugin which should generate jaxb .xsd to java classes. When i execute clean, compile, package xsd classes do not gets generate. When i execute mvn jaxb2:generate…
d-man
  • 57,473
  • 85
  • 212
  • 296
0
votes
1 answer

jaxb binding to override the datatype List to String
jaxb unmarshals as protected List
icedek
  • 574
  • 2
  • 13
  • 31
0
votes
1 answer

xjc does not add @XmlElement(nillable=false) on generated fields

I have a problem with generating classes using xjc. In the schema I have nillable="false", yet this is not added as an annotation (@XmlElement(nillable=false)) on the generated fields. This causes Jackson not to remove the fields when they are…
Erlend
  • 4,336
  • 22
  • 25
0
votes
1 answer

Generated XML - Namespace prefixes

Currently i have created Java classes from a large number of schema files (.xsd). The resulting classes are working (generated via jaxb2-maven-plugin). But now i try to generate an XML out of a object structure. The first thing is which i not fully…
khmarbaise
  • 92,914
  • 28
  • 189
  • 235
-1
votes
1 answer

JAXB compiler is binding xs:long to Java Long instead of primitive long class

I am generating sources from WSDL. It generate wrapper types. I want JAXB to generate primitive types instead of wrappers. In pom.xml org.codehaus.mojo jaxb2-maven-plugin
era
  • 391
  • 4
  • 24
-1
votes
1 answer

Parse Unknown Xml using JAXB

Please have a look at both xml files. file 1: xyz xy xyz1 xz1 file…
-1
votes
2 answers

jaxb2-maven plugin

I wanna generated java classes from xsd files bt soome how whenever i run the code it shows the error No Schema has been found... here is the code... Kindly help...
-1
votes
2 answers

No JAXB Classes Generated from xsd using Maven Plugin

am not able see any of jaxb classes generated from my xsd using jaxb2-maven-plugin org.codehaus.mojo jaxb2-maven-plugin
buttowski
  • 4,657
  • 8
  • 27
  • 33
1 2 3
11
12