What Maven2 plugins are available for JAXB2?

788 Views Asked by At

I'd like to generate Java source code from an XML Schema file using JAXB2 via a Maven2 plugin (as in this blog post).

There seem to be 2 Maven plugins for JAXB: The "Maven 2 JAXB 2.x Plugin" (org.jvnet.jaxb2.maven2:maven-jaxb2-plugin) is hosted at java.net, and the "Maven JAXB 2.1 Plugin" (org.codehaus.mojo:jaxb2-maven-plugin) hosted at Codehaus.

It seems to me the one at java.net has more features, like XJC plugins. But its java.net page refers to highsource.org for documentation, which unfortunately seems to be unavailable recently.

So what's the best choice? Does anyone know what's going on with highsource.org? What's everyone else using?

1

There are 1 best solutions below

1
On BEST ANSWER

I found the following to be working well enough for my system.

<plugin>
  <groupId>org.jvnet.jaxb2.maven2</groupId>
  <artifactId>maven-jaxb2-plugin</artifactId>
</plugin>