[ https://issues.apache.org/jira/browse/MRESOURCES-254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17161213#comment-17161213 ]
Dennis Lundberg commented on MRESOURCES-254: -------------------------------------------- Okay I figured this out now. maven-resource-plugin filters the files that needs to be filtered using the filtering properties that it knows about. When doing that it is using the delimiters specified. The <properties> defined in the pom.xml are given to the plugin exactly as they are specified in the POM, except that properties used inside another property are interpolated. This means that in your project prop2="1-2" and prop3="1-${buildNumber}". These are then passed to the resources plugin. In your project the plugin will try to filter anything that matches the delimiters @@. Even though there exists a filtering property called buildNumber, it will not be used because prop3 does not have "@buildNumber@" in it. It does however have "@{buildNumber}, but that is a no-op because the default delimiters have been disabled. The solution to your problem is that you need to use the same delimiters in the values of the <properties> in the POM that you have configured the resource plugin to use. You need to replace ${buildNumber} in the POM with @buildNumber@, and then it will work. > Filtering of compound properties using properties added by other plugins > fails without ${*} delimiter > ----------------------------------------------------------------------------------------------------- > > Key: MRESOURCES-254 > URL: https://issues.apache.org/jira/browse/MRESOURCES-254 > Project: Maven Resources Plugin > Issue Type: Bug > Components: delimiters, filtering > Affects Versions: 3.1.0 > Reporter: Andre Brait > Priority: Major > Attachments: test.zip > > > How to reproduce: > # Open the project I attached here > # Run mvn clean compile > # Check that the file target/classes/someText.txt has a compund property > that was incorrectly filtered > # SetĀ useDefaultDelimiters to true and run mvn clean compile again > # Check that the fileĀ target/classes/someText.txt was now filtered properly -- This message was sent by Atlassian Jira (v8.3.4#803005)