I have a multi module maven project and I need to build an XML schema from JaxB annotated classes. These classes are in different maven projects. Can I use the jaxb2-maven-plugin to generate a single schema by pointing at the source from all of the projects? Perhaps like this ...
<configuration>
...
<includes>
<include>../OtherProj1/src/main/java/**/*.java</include>
<include>../OtherProj2/src/main/java/**/*.java</include>
<include>**/*.java</include>
</includes>
...
</configuration>
Or do I need to create a schema for each project individually and then import them into a parent schema instead?
I am using maven 2.2.1 and jaxb2-maven-plugin 1.3.