Filtering WEB-INF files in Maven webapp

<build>
  <plugins>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <version>2.0.2</version>
    <configuration>
      <webResources>
        <resource>
           <directory>${basedir}/src/main/webapp/WEB-INF</directory>
           <filtering>true</filtering>
           <targetPath>WEB-INF</targetPath>
        </resource>
      </webResources>
    </configuration>
   </plugin>
 </plugins>
</build>
Advertisements

One thought on “Filtering WEB-INF files in Maven webapp

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s