Hi,
This is a follow up to my previous question regarding resource copying.
Below is my resources plugin configuration which will hopefully give
people a better idea of what I am trying to achieve.
When I run my build I can see the 2 different executions of the plugin run
and files do get copied to the correct locations in the target directory.
The problem is that the filtering does not happen. I can see when I run
with the -X option that the filters array is empty for both executions.
Does anyone know how to configure a different filter file for each
execution properly?
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.