Hi all,

i need to filter a resource file before the generate-sources phase (input
file for source-generator). So i bound the maven-resources-plugin to the
generate-sources phase. The point is that filtering does not work anymore.
Even the filtering in the default lifecycle-phase of the generator plugin
does not work anymore. Seem as explicity naming the resource-plugin
overwrites some default configuration. Any idea which one this could be? Or
any other idea how this could be solved..

Thanks,
Klaus

---
<build>
        <plugins>
            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <executions>
                    <execution>
                        <id>filterGeneratorInput</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>resources</goal>
                        </goals>
                        <configuration>
                            <resources>
                                <resource>
                                    <filtering>true</filtering>

<directory>src/main/resources</directory>
                                    <includes>

<include>GeneratorInput.xml</include>
                                    </includes>
                                </resource>
                            </resources>
                            <outputDirectory>target\klaus</outputDirectory>
                        </configuration>
                    </execution>
                </executions>
                <configuration>
                    <resources>
                        <resource>
                            <filtering>true</filtering>

<directory>src/main/resources/META-INF</directory>
                        </resource>
                    </resources>
                </configuration>
            </plugin>
            <!--  (Re-)Generate -->
            <plugin>
                <artifactId>myGeneratorPlugin</artifactId>
            ...

Reply via email to