peter-c-larsson opened a new issue, #471:
URL: https://github.com/apache/maven-resources-plugin/issues/471

   ### Affected version
   
   3.4.0 and 3.5.0
   
   ### Bug description
   
   The following code works for us in 3.3.1 when use filter on a single file in 
our setup. When upgrading to 3.4.0 and 3.5.0 the following code has stopped 
working and no filtering is taking place in our file 
`db/changelog/db.changelog-client-secret.xml`
   
   ```
           <resources>
               <resource>
                   <filtering>true</filtering>
                   <directory>src/main/resources</directory>
                   <includes>
                       
<include>db/changelog/db.changelog-client-secret.xml</include>
                   </includes>
               </resource>
               <resource>
                   <filtering>false</filtering>
                   <directory>src/main/resources</directory>
                   <includes>
                       <include>**</include>
                   </includes>
               </resource>
           </resources>
   ```
   
   The file that is being filtered looks like this:
   ```
     <property name="secret" value="${env.DEV_SECRET}" context="dev" />
     <property name="secret" value="${env.PROD_SECRET}" context="prod" />
   ```
   
   With 3.3.1 the values are replaced with the correct env variables and in the 
newer versions it is being unchanged.
   
   This could also be incorrect configuration that we have that has happened to 
have been working in previous versions and might be a variation of this bug: 
https://github.com/apache/maven-resources-plugin/issues/453 and submitting it 
as a new bug in case it is a user failure where we should have configured it 
differently.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to