Hi,
I've implemented a new set of features in the maven-jaxb2-plugin. From
version 0.8.0 you can compile schemas configured by URLs or provided
as a resource in a Maven artifact. Example:
<configuration>
<forceRegenerate>true</forceRegenerate>
<schemas>
<schema>
<url>
http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd</url>
<dependencyResource>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin-tests-po</artifactId>
<!-- Can be defined in project dependencies or dependency
management -->
<version>0.8.0-SNAPSHOT</version>
<resource>purchaseorder.xsd</resource>
</dependencyResource>
</schema>
</schemas>
</configuration>
Documentation is available here:
*
http://confluence.highsource.org/display/MJIIP/User+Guide#UserGuide-Resourceentries
Version 0.8.0 will be released when after the next JAXB version is released.
Bye,
/lexi