Resource File Filtering is Too Verbose --------------------------------------
Key: MNG-3889 URL: http://jira.codehaus.org/browse/MNG-3889 Project: Maven 2 Issue Type: Bug Affects Versions: 2.0.9 Environment: Windows XP, IBM Websphere 6.1 Reporter: Tim Urberg When filtering a resource file, maven is too verbose. It's filtering a property that should not be filtered. Here's a snippet of the pom file: <filters> <filter>src/test/resources/local.properties</filter> </filters> <resources> <resource> <directory>src/test/resources</directory> <filtering>true</filtering> </resource> </resources> The filtering is done correctly, however in the src/test/resources folder there is a spring configuation file which has the following: <bean id="oracleDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/> <property name="url" value="${oracleDataSource.url}"/> <property name="username" value="${oracleDataSource.username}"/> <property name="password" value="${oracleDataSource.password}"/> </bean> After the filtering is done here is the result of the spring configuration: <bean id="oracleDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/> <property name="url" value="http://maven.apache.org/acd-core"/> <property name="username" value="${oracleDataSource.username}"/> <property name="password" value="${oracleDataSource.password}"/> </bean> Note the filtered property of url. Since this is a specific property of Spring and not maven, it should not be filtered. Thanks, Tim -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira