resouce profile/filtering doesn't work --------------------------------------
Key: MNG-4447 URL: http://jira.codehaus.org/browse/MNG-4447 Project: Maven 2 Issue Type: Bug Components: Plugins and Lifecycle Affects Versions: 3.0-alpha-3, 3.0-alpha-2, 3.0-alpha-4, 3.0-alpha-5, 3.0, 3.x Environment: Linux 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux Reporter: Luca Marrocco Priority: Minor Attachments: maven3-resource-regression.zip i have a file application.properties in src/main/resources. This file contains some placeholder managed using resource filtering and profile. I have defined a profiles.xml into project. running after runned mvn compile application.properties is generated into target/classes but without values. same project runned using maven2 work well. i post here an example of command output to explain the problem (i have omitted some noise output) $ /opt/apache-maven-2.0.9/bin/mvn -Denv=profile1 compile && cat target/classes/application.properties ... [INFO] [resources:resources] [INFO] [compiler:compile] ... env=profile2 attr1=profile2-value1 attr2=profile2-value2 $ /opt/apache-maven-3.0-SNAPSHOT/bin/mvn -Denv=profile1 compile && cat target/classes/application.properties [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building maven3-resource-regression 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.4.1:resources (default-resources) [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) [INFO] No sources to compile [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.393s [INFO] Finished at: Fri Nov 13 10:15:11 CET 2009 [INFO] Final Memory: 3M/77M [INFO] ------------------------------------------------------------------------ env=profile1 attr1=${attr1} attr2=${attr2} i attach a project to reproduce the problem. Let me know if i can help you to solve this :D -- 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