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
|
|
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
