Upgrading to maven-war-plugin 2.1-alpha-1 solved it.

http://www.nabble.com/War-Plugin-Filtering-td17541883.html
http://www.nabble.com/War-Plugin-Filtering-td17541883.html 


monkeyden wrote:
> 
> I have the following code in a pom with packaging=war:
> 
> 
> <build>
>       <filters>
>               <filter>src/main/filters/common-filter.properties</filter>
>               
> <filter>src/main/filters/${environment.type}-filter.properties</filter>
>       </filters>
>       <plugins>
>               <plugin>
>                       <groupId>org.apache.maven.plugins</groupId>
>                       <artifactId>maven-war-plugin</artifactId>
>                       <version>2.0</version>
>                       <configuration>
>                               <webResources>
>                                       <resource>
>                                               
> <directory>${basedir}/src/main/webapp/WEB-INF</directory>
>                                               <filtering>true</filtering>
>                                               <includes>
>                                                       <include>*.xml</include>
>                                   </includes>
>                                               <targetPath>WEB-INF</targetPath>
>                                       </resource>
>                               </webResources>
>                       </configuration>
>               </plugin>
>       </plugins>
> </build>
> 
> I want all the xml files to be filtered and copied to the WEB-INF
> directory (targetPath).  Neither of those are happening.  All the xml
> files are being copied, unfiltered, to the war root.  Am I missing
> something or is this the way it's supposed to work?
> 
> Also, this is a child of the main POM.  Is the value of <directory>
> relative to this projects POM or the parents POM?  I can't seem to get a
> reference to this projects ./src directory without using ${basedir}.
> 
> Thanks
> 

-- 
View this message in context: 
http://www.nabble.com/Resource-Filtering-and-targetPath-tp21679278p21680262.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to