Hi, Not sure if I have tripped over a bug or I am just not using the resource filter features correctly.
I have been trying to get the resource plugin to execute twice within the same project build. I have been looking around on the mail archives and have seen some different tag combinations being used, but the tags do not appear anywhere in the official docs (at least as far as I have found so far). I can get the plugin to execute twice and the resources get copied to the correct directories, but the filtering does not work. Using the tag combination below, the debug output shows that there are no filters configured when the 2 executions run. Can someone validate the tag combination below, particularly the filterPropertiesFile tag since this is the one I have seen in mail threads, but dont see mentioned in the docs. Thanks. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.2</version> <executions> <execution> <id>prod</id> <phase>package</phase> <goals> <goal>resources</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/prod</outputDirectory> <filterPropertiesFile>${basedir}/src/main/filters/prod.properties</filterPropertiesFile> <filtering>true</filtering> </configuration> </execution> <execution> <id>qa</id> <phase>package</phase> <goals> <goal>resources</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/qa</outputDirectory> <filterPropertiesFile>${basedir}/src/main/filters/qa.properties</filterPropertiesFile> <filtering>true</filtering> </configuration> </execution> </executions> </plugin> ------------------------------------------------------------------------------ Craig Dickson Software Engineering Manager Behr Process Corporation Santa Ana, California ------------------------------------------------------- The information contained in this e-mail message may be proprietary, privileged, confidential or protected from disclosure. If you are not the intended recipient, any dissemination, distribution or copying is strictly prohibited. If you think that you have received this e-mail message in error, please e-mail the sender.