Main Menu
- Home
- Projects
- Forums
- People
- Java User Groups
- JCP
This Maven 2 plugin wraps the JAXB 2.x XJC compiler and provides the capability to generate java sources from schemas.
*.xsd
) and bindings (*.xjb
) into the src/main/resources
folder.<code><build> <plugins> <plugin> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <executions> <execution> <goals> <goal>generate</goal> </goals> </execution> </executions> </plugin> </plugins> </build></code>
<code><build> <plugins> ... <plugin> <inherited>true</inherited> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> </plugins> </build></code>
See the sample purchase order project for example.
Maven JAXB2 Plugin project homepage can be found at the following address:
confluence.highsource.org/display/MJIIP
Maven JAXB2 Plugin documentation can be found here:
confluence.highsource.org/display/MJIIP/Documentation
Here's a couple of direct links: