Hi,

I'm trying to use jaxb2-maven-plugin with two executions but it's not working:

[ERROR] no schemas has been found

It seems that configuration is not being reading inside execution node but only outside of executions node.

Please, could someone tell me, am I doing something wrong?

This is my pom:

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jaxb2-maven-plugin</artifactId>
                <version>1.3</version>
                <executions>
                    <execution>
                        <id>ContratoArrecadacao</id>
                        <goals>
                            <goal>xjc</goal>
                        </goals>
                        <configuration>
                            <verbose>true</verbose>
                            <staleFile>${project.build.directory}/generated-sources/jaxb/contratoarrecadacao/.staleFlag</staleFile>
                            <schemaFiles>contrato_arrecadacao.xsd</schemaFiles>
                            <schemaDirectory>${basedir}/src/main/resources/xsd/</schemaDirectory>
                            <packagename>com.example.contratoarrecadacao</packagename>
                        </configuration>
                    </execution>
                    <execution>
                        <id>MovimentoArrecadacao</id>
                        <goals>
                            <goal>xjc</goal>
                        </goals>
                        <configuration>
                            <verbose>true</verbose>
                            <forceRegenerate>true</forceRegenerate>
                            <clearOutputDir>false</clearOutputDir>
                            <staleFile>${project.build.directory}/generated-sources/jaxb/movimentoarrecadacao/.staleFlag</staleFile>
                            <schemaDirectory>${basedir}/src/main/resources/xsd/</schemaDirectory>
                            <schemaFiles>movimento_arrecadacao.xsd</schemaFiles>
                            <packagename>com.example.movimentoarrecadacao</packagename>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

-- 
_______________________________________
Cristiano Gavião - Analista de Sistemas
DRY Software
Fone: (85) 9912-5251



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to