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

Parsing Xml using JAXB with multiple Schemas each in a separate maven module

I am currently working on having the Maven JAXB plugin generate the model for a really complex set of Xml schemas. I started with all schemas being in one Maven module. The resulting module was able to parse any document in that language.…
Christofer Dutz
  • 2,305
  • 1
  • 23
  • 34
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

Multiple related schemas using jaxb2

I'm using jaxb2 for a rest webservice. I need to use two schemas. One is my own schema, stored in the src/main/resources/schema folder, and another schema, which is an online schema http://mypage.com/1/meta/schema.xsd. The problem is that both…
Nacho321
  • 1,911
  • 7
  • 33
  • 55
0
votes
1 answer

maven-jaxb2-plugin deletes classes right after build

I am trying to generate some classes with the maven-jaxb2 plugin. But a few seconds after every build the classes are deleted out of the target/generated-resources folder (but they are still in the target/classes/... folder) Here is the…
chresse
  • 5,486
  • 3
  • 30
  • 47
0
votes
1 answer

JAXB binding file: enumeration with integer id

I have an enumeration in XSD as follows:
bluetech
  • 1,380
  • 3
  • 13
  • 22
0
votes
1 answer

Maven JAXB plugin and locale for generated output

I'm using the maven-jaxb2-plugin (from org.jvnet.jaxb2.maven2) to generate classes from an XSD schema. All is working fine and the generated classes are all that I need. Except for one thing, all the generated comments inside those classes are…
Lætitia
  • 1,388
  • 1
  • 20
  • 30
0
votes
2 answers

Jaxb 2 Maven Plugin - how to make maven respect XSD namespaces?

I have a question according to any jaxb2 plugins for maven. I want to generate sources from XSD schema. Normally if I run xjc from command line xjc generates all the sources according to their namespaces (like core:AccountType to…
Jiri Vlasimsky
  • 684
  • 6
  • 13
-1
votes
1 answer

Problems when generating classes with JAXB - no @XmlRootElement

When I run the JAXB plugin, the files are created, but without @XmlRootElement for this reason I need to include this annotation manually in addition to adding an "extends" to the class, however whenever the project is updated the change is…
-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
21
22