1

Possible Duplicate:
Difference of Maven JAXB plugins

I see there are several plugins available:

  • com.sun.tools.xjc.maven2:maven-jaxb-plugin
  • org.codehaus.mojo:xjc-maven-plugin
  • org.codehaus.mojo:jaxb2-maven-plugin
  • org.jvnet.jaxb2.maven2:maven-jaxb2-plugin

Which one should I use (to generate jaxb classes from xsd)?

Community
  • 1
  • 1
IttayD
  • 28,271
  • 28
  • 124
  • 178

1 Answers1

2

There was a question that you could find helpful: Difference of Maven JAXB plugins.

Truly, the com.sun.tools.xjc.maven2:maven-jaxb-plugin seems to be dead, it also offers few configuration options. I used it for a while, then switched to org.codehaus.mojo:jaxb2-maven-plugin when I found a need to customize the generation to the extent the Sun's plugin could not cope with.

I haven't used the org.codehaus.mojo:xjc-maven-plugin, but it seems to be a subset of the more versatile org.codehaus.mojo:jaxb2-maven-plugin. As for the last one, the org.jvnet.jaxb2.maven2:maven-jaxb2-plugin, no personal experience, either, but the dead links on the terse documentation page are not encouraging.

Community
  • 1
  • 1
MaDa
  • 10,511
  • 9
  • 46
  • 84