[ https://jira.codehaus.org/browse/MRESOURCES-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karl-Heinz Marbaise closed MRESOURCES-142. ------------------------------------------ Resolution: Cannot Reproduce Assignee: Karl-Heinz Marbaise To filter source files you can use the templating-maven-plugin for such purposes. Apart from that defining a target folder as a source does not make really sense. I will close this issue. If you have any objections or more informations about the issue please don't hesitate to reopen the issue. > Filter does not process sources > ------------------------------- > > Key: MRESOURCES-142 > URL: https://jira.codehaus.org/browse/MRESOURCES-142 > Project: Maven Resources Plugin > Issue Type: Bug > Affects Versions: 2.5 > Reporter: Rainer Flicker > Assignee: Karl-Heinz Marbaise > > Filter does not process sources. > pom.xml: > {code} > ... > <build> > <resources> > <resource> > <directory>src/main/java</directory> > <filtering>true</filtering> > <targetPath>../filtered-sources/java</targetPath> > </resource> > <resource> > <directory>src/main/resources</directory> > <filtering>true</filtering> > <excludes> > <exclude>**/persistence-test.xml</exclude> > </excludes> > </resource> > </resources> > <sourceDirectory>target/filtered-sources/java</sourceDirectory> > ... > {code} > mvn clean install -Djavamail.jndi="java:Mail" > With version 2.5, filtered sources contains ${javamail.jndi}, while with > version 2.4.3, > they contain "java:Mail". -- This message was sent by Atlassian JIRA (v6.1.6#6162)