What Maven2 plugins are available for JAXB2?

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

JAXB seems to have 2 Maven plugins: "Maven 2 JAXB 2.x Plugin" (org.jvnet.jaxb2.maven2: maven-jaxb2-plugin) is hosted on java.net, and "Maven JAXB 2.1 Plugin" (org.codehaus .mojo: jaxb2-maven-plugin) hosted at Codehaus.

It seems to me that java.net has more features like XJC plugins. But his java.net page links to highsource.org for documentation, which, unfortunately, has not been available recently.

So what is the best choice? Does anyone know what is happening with highsource.org? What do everyone else use?

+3
source share
1 answer

I found the following to work well enough for my system.

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

Source: https://habr.com/ru/post/1792881/


All Articles