You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Srinivas Pavani <sp...@yahoo.com> on 2006/07/23 17:15:24 UTC
m2 maven-war-plugin filtering broken?
The code in the latest HEAD branch handles copying of the resources but when
you turn the <filtering> on, it fails to copy resources with a
ClassCastException.
FYI, my project layout is as follows:
parent_project/src/WEB-INF (shared resources)
parent_project/module1/...
parent_project/modeul2/...
The configuration for maven-war-plugin in parent's pom.xml:
<configuration>
<webResources>
<resource>
<directory>${project.basedir}/../src/WEB-INF</directory>
<!-- override the destination directory for this resource -->
<targetPath>WEB-INF</targetPath>
<!-- enable filtering -->
<filtering>false</filtering>
</resource>
</webResources>
</configuration>
There is no further configuration of maven-war-plugin in any of child poms.
Note: the filters are provided as properties in profiles.xml at the parent
project level.
Has anyone successfully managed to copy resources with filtering flag turned
on?
--
View this message in context: http://www.nabble.com/m2-maven-war-plugin-filtering-broken--tf1988188.html#a5456303
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org