jira-importer commented on issue #138:
URL: 
https://github.com/apache/maven-war-plugin/issues/138#issuecomment-2967845193

   **[Anthony 
Accioly](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=a.accioly)**
 commented
   
   Same Issue here, reproduced in openSUSE 13.1 and Windows 7 (probably OS 
independent). This 
[pom.xml](http://code.7rtc.com/sfcb/src/001b12b14863f453cd1d30431c2bda3839a2d6ee/pom.xml?at=master)
 works with version 2.3 but, with version 2.4 fails to replace properties 
defined in my properties file:
   
   ```xml
       <build>
           
<outputDirectory>target/${project.artifactId}-${project.version}/WEB-INF/classes</outputDirectory>
           <filters>
                <!-- Properties defined in this file are ignored in 2.4 -->
               <filter>src/main/resources/facebook-app.properties</filter>
           </filters>
           <plugins>
   
               <!-- Other plugins -->
   
               <plugin>
                   <groupId>org.apache.maven.plugins</groupId>
                   <artifactId>maven-war-plugin</artifactId>
                   <version>2.4</version>
                   <configuration>
                       <archiveClasses>true</archiveClasses>
                       
<webXml>${project.build.directory}/generated-sources/appengine-endpoints/WEB-INF/web.xml</webXml>
                       <webResources>
                           <resource>
                               
<directory>${basedir}/src/main/webapp/WEB-INF/</directory>
                               <filtering>true</filtering>
                               <targetPath>WEB-INF</targetPath>
                               <excludes>
                                   <exclude>web.xml</exclude>
                               </excludes>
                           </resource>
                           <resource>
                               
<directory>${basedir}/src/main/webapp/</directory>
                               <filtering>true</filtering>
                               <includes>
                                   <include>index.jsp</include>
                                   <include>include/header.jsp</include>
                                   <include>include/fognmeta.jsp</include>
                                   <include>include/analytics.jsp</include>
                                   <include>include/fb_auth.jsp</include>
                               </includes>
                           </resource>
                           <resource>
                               
<directory>${project.build.directory}/generated-sources/appengine-endpoints</directory>
                               <includes>
                                   <include>WEB-INF/*.discovery</include>
                                   <include>WEB-INF/*.api</include>
                               </includes>
                           </resource>
                       </webResources>
                   </configuration>
               </plugin>
   
               <!-- Other plugins -->
   
       </build>
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to