Yes this is possible.  I  admit it was not easy to figure it out :)

http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html


Is a great place to start.

Here is my config...

<plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-war-plugin</artifactId>
               <executions>
                   <execution>
                       <goals>
                           <goal>war</goal>
                       </goals>
                       <configuration>

                           <webResources>
                               <resource>

<directory>${basedir}/src/main/webapp</directory>
                                   <filtering>true</filtering>
                                   <includes>
                                       <include>**/*.xml</include>
                                       <include>**/*.js</include>
                                   </includes>
                               </resource>
                           </webResources>
                       </configuration>
                   </execution>
               </executions>
           </plugin>


Just make sure you have your filters configured outside of this.

Nathan

On 7/10/07, Michael Böckling <[EMAIL PROTECTED]> wrote:

Hi!

Is there a way to filter files below the webapp directory, e.g. web.xml or

context.xml?
I don't want to externalize them into a separate ressources directory.
Basically, what i'm looking for is setting filtering to true for
<webappDirectory>WebRoot</webappDirectory>.


Thanks for any help!

Regards,
Michael


--
Michael Böckling
Java Engineer
dmc digital media center GmbH
Rommelstraße 11
70376 Stuttgart (Germany)
Telefon: +49 711 601747-0
Telefax: +49 711 601747-141
E-Mail: [EMAIL PROTECTED]
Internet: www.dmc.de

Handelsregister: AG Stuttgart HRB 18974
Geschäftsführer: Andreas Magg, Daniel Rebhorn, Andreas Schwend

---------------------------------------------
Besseres E-Business.
dmc ist die kreative Vernetzung von Agentur, Systemhaus und Service. Seit
über 10 Jahren entwickeln und realisieren wir zukunftweisende und
erfolgreiche E-Business-Lösungen. Zu unseren langjährigen Kunden zählen
neckermann.de, Kodak und Telekom Training.

dmc auf Platz 8 im aktuellen New Media Service Ranking.
Als inhabergeführte und netzwerkunabhängige Agentur gehören wir mit einem
Umsatz von 13,50 Mio. Euro zu den Top 10 der erfolgreichsten New Media
Dienstleister in Deutschland.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to