[ http://jira.codehaus.org/browse/MNG-3017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=133790#action_133790 ]
Nathaniel Harward commented on MNG-3017: ---------------------------------------- I would like to add that using variables does not seem to work inside the <missing/> or <exists/> elements. I would like to suggest that variable interpolation be implemented in these elements to solve this problem and allow for more flexibility than, for example, just looking for files relative to the pom directory as a fix. I tried to get around this problem by using a value of "${basedir}/xxx" or "${project.basedir}/xxx" with no success. "${basedir}" does not work when run inside the pom's directory either, so I know no interpolation is not being done with these elements. > Profile activation by file fails when maven is run outside the pom's directory > ------------------------------------------------------------------------------ > > Key: MNG-3017 > URL: http://jira.codehaus.org/browse/MNG-3017 > Project: Maven 2 > Issue Type: Bug > Components: Profiles > Affects Versions: 2.0.6 > Environment: Darwin Kernel Version 8.9.1 > java version "1.6.0-dp" > Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34) > Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing) > Reporter: Jean-Luc Wasmer > Fix For: 2.0.x > > Attachments: maven-test.tgz > > > When calling maven outside the pom's directory, the profile activation fails: > macb:~/Development/maven-test/parent jl$ mvn install > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] Example parent > [INFO] Example module1 > [INFO] Example module2 > [INFO] > ---------------------------------------------------------------------------- > .... > macb:~/Development/maven-test jl$ mvn -f parent/pom.xml install > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] Example parent > [INFO] Example module1 > [INFO] > ---------------------------------------------------------------------------- > .... -- 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