What Maven2 plugins are available for JAXB2?
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 hi开发者_运维技巧ghsource.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?
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>
精彩评论