Okay, if that's the case, the code needs to be changed to support
subdirectories. I know for certain that specifying an artifact full of
schemas will get you all of them, regardless of subdirectories.

Please put in a change request here: http://jira.codehaus.org/browse/MOJO

In the mean time, if you must meet a deadline, you can work around this
problem by creating another project whose sole purpose is to collect the
xsd's into a jar file (no source files, resources pointed to src/xsd).
Then specify that jar file as an artifact jar and they will all get
parsed.

Kris Bravo
Corridor Software, Inc.
http://www.corridor-software.us

> It doesn't work becouse I have many xsd files in many subdirectories.
> <schemaDirectory>src/xsd</schemaDirectory> looks for xsd files only in
> this directoryand not in subdirectories.
>
> Pozdrawiam
> Sebastian Bùoch
>
>
>
> "Kris Bravo" <[EMAIL PROTECTED]>
> 2006-01-03 19:42
> Please respond to
> [email protected]
>
>
> To
> [email protected]
> cc
>
> Subject
> Re: [mojo-user] Problem with xmlbeans ant fileset
>
>
>
>
>
>
> This is off a bit, since xmlbeans doesn't support filesets in this way.
> Also, I'm not certain what you are trying to do with this line:
>
>  <fileset dir="src/java" includes="**/*.*"/>
> but if you want your java source located here, you need
>  <build>
>    <sourceDirectory>src/java</sourceDirectory>
>  </build>
>
> instead. Try this along with the following plugin description instead.
>
> <plugin>
>   <groupId>org.codehaus.mojo</groupId>
>   <artifactId>xmlbeans-maven-plugin</artifactId>
>   <executions>
>     <execution>
>       <phase>generate-sources</phase>
>         <goals>
>           <goal>xmlbeans</goal>
>         </goals>
>     </execution>
>   </executions>
>   <configuration>
>     <memoryInitialSize>8m</memoryInitialSize>
>     <memoryMaximumSize>256m</memoryMaximumSize>
>     <debug>true</debug>
>     <verbose>true</verbose>
>     <schemaDirectory>src/xsd</schemaDirectory>
>     </configuration>
>   </plugin>
>
> Kris Bravo
>
>> I'm using maven2 and i'm trying to us xmlbeans plugin. I need to set
> files
>> so could find them. Please HELP!!! My pom.xml looks like this:
>>
>> <plugin>
>>         <groupId>org.codehaus.mojo</groupId>
>>         <artifactId>xmlbeans-maven-plugin</artifactId>
>>           <executions>
>>                 <execution>
>>                 <phase>generate-sources</phase>
>>
>>                         <goals>
>>                                 <goal>xmlbeans</goal>
>>
>>                         </goals>
>>
>>                 </execution>
>>
>>         </executions>
>>         <inherited>true</inherited>
>>         <configuration>
>>
>>                 <memoryInitialSize>8m</memoryInitialSize>
>>                 <memoryMaximumSize>256m</memoryMaximumSize>
>>                 <debug>true</debug>
>>                 <verbose>true</verbose>
>>                 <failonerror>true</failonerror>
>>                 <schemaDirectory>src/xsd</schemaDirectory>
>>                 <fileset dir="src/xsd" includes="**/*.xsd"/>
>>                 <fileset dir="src/java" includes="**/*.*"/>
>>
>>
>>                 </configuration>
>>
>>
>>       </plugin>
>>
>>
>>
>>
>> Pozdrawiam
>> Sebastian B³och
>
>
>
>


Reply via email to