My src/main/xsd directory has subdirectories each with schema files:

src/main/xsd/aaa/bbb/ccc.xsd
src/main/xsd/ddd/eee/fff.xsd
...

I've figured out to do:


     <plugin>
       <groupId>org.codehaus.mojo</groupId>
       <artifactId>xmlbeans-maven-plugin</artifactId>
       <version>2.0</version>
       <executions>
        <execution>
         <phase>generate-sources</phase>
         <goals>
           <goal>xmlbeans</goal>
         </goals>
        </execution>
       </executions>
       <configuration>
        <schemaDirectory>src/main/xsd</schemaDirectory>
        <sourceSchemas>aaa/bbb/ccc.xsd,ddd/eee/fff.xsd</sourceSchemas>
       </configuration>
   </plugin>

It works, but is it right?

1) The documentation for the plugin says that sourceSchemas is "A file
that points to a directory of files."  Certainly, that's not correct.  I
wonder if the doc is right and implementation is wrong, or vice versa.

2) I expected sourceSchemas to be a List type.  In reality, I have about
6 different locations for schema files, and so the comma separated list
has become too awkward.

3) I expected the mojo to visit the schemaDirectory subdirectories for
xsd files.  This would obviate sourceSchemas (as it is currently
implemented).

Before I go off and enter these as functional requests in the plugin's
jira, I wanted to poll the community to see if I have things incorrect.

Thanks,
John



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to