This plugin wraps the com.sun.tools.jxc.SchemaGenerator, so it's actually not the question if the plugin supports this. If you view the source of AbstractSchemagenMojo[1] (it's split in two, one for main sources and one for test sources), you'll see that the plugin is gathering some arguments and passes them to the SchemaGenerator. In order to answer your question you should check the corresponding documentation[2]
- Robert [1] http://mojo.codehaus.org/jaxb2-maven-plugin/xref/org/codehaus/mojo/jaxb2/AbstractSchemagenMojo.html [2] http://java.sun.com/javase/6/docs/technotes/guides/xml/jaxb/index.html > Date: Fri, 23 Jul 2010 14:11:09 -0700 > From: [email protected] > To: [email protected] > Subject: [mojo-user] jaxb2-maven-plugin - schemagen produce multiple xsds > without import/include > > > When using the jaxb2-maven-plugin and schemagen, I include all java files to > be generated from Java to XSD: > > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>jaxb2-maven-plugin</artifactId> > <version>1.3</version> > <executions> > <execution> > <goals> > <goal>schemagen</goal> > </goals> > </execution> > </executions> > <configuration> > <includes> > <include>**/*.java</include> > </includes> > </configuration> > </plugin> > > The question I have is if I include a package-info.java class at each > package level, a different schema is produced...which is totally > cool...except the schemas are not linked through import or includes. So > what I wind up producing from a Java Class that is associated with another > Java Class (in two different packages) is two schemas (like I want), but the > one schema doesn't import/include the other schema. Is this how this is > supposed to work? > > Thanks, > > Jay > -- > View this message in context: > http://old.nabble.com/jaxb2-maven-plugin---schemagen-produce-multiple-xsds-without-import-include-tp29249697p29249697.html > Sent from the mojo - user mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
