Furthermore, using the approach described at the start of this thread
(example below),  it seems that binary files get corrupted during the
filtering phase. This makes it particularly unsuited to process and filter a
directory tree for a webapplication. I've seen similar behaviour in the
archteype processing, all using the same backend code presumably.

 <build>
   <filters>
     <filter>${deployment.properties}</filter>
   </filters>
   <plugins>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-war-plugin</artifactId>
       <version>2.0-beta-3-SNAPSHOT</version>
       <executions>
         <execution>
           <goals>
             <goal>war</goal>
           </goals>
           <configuration>
             <warSourceDirectory>
               ${project.build.directory}/filtered-webapp-resources
             </warSourceDirectory>
           </configuration>
         </execution>
       </executions>
     </plugin>
   </plugins>
   <resources>
     <resource>
       <directory>src/main/webapp</directory>
       <filtering>true</filtering>
       <targetPath>../filtered-webapp-resources</targetPath>
     </resource>
     <resource>
       <directory>src/main/resources</directory>
       <filtering>true</filtering>

<targetPath>../filtered-webapp-resources/WEB-INF/classes</targetPath>
     </resource>
   </resources>
 </build>

Reply via email to