Is there a JIRA in for this?
nicolas de loof wrote:
Profile activation doesn't support property interopolation, even the
${basedir} one
This makes this feature unusable in nested modules configuration, as the
file are tested from current dir, not active project root...
I already reported this issue in JIRA.
Nicolas
2008/9/26 Felix Knecht <[EMAIL PROTECTED]>
Hi all
The foofoo profile is always activated, no matter if a file 'timestamp'
exists in the same directory like the pom.xml or
not. It looks to me as the ${basedir} is not correctly resolved. Is this a
known problem?
Thanks
Felix
[EMAIL PROTECTED] ~/tmp $ cat pom.xml
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>bar</groupId>
<artifactId>foo</artifactId>
<version>1.0.0</version>
<name>foobar</name>
<packaging>jar</packaging>
<profiles>
<profile>
<id>foofoo</id>
<activation>
<file>
<missing>${basedir}/timestamp</missing>
</file>
</activation>
</profile>
</profiles>
</project>
[EMAIL PROTECTED] ~/tmp $ touch timestamp
[EMAIL PROTECTED] ~/tmp $ mvn help:active-profiles
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO]
------------------------------------------------------------------------
[INFO] Building foobar
[INFO] task-segment: [help:active-profiles] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] [help:active-profiles]
[INFO]
Active Profiles for Project 'bar:foo:jar:1.0.0':
The following profiles are active:
- foofoo (source: pom)
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Fri Sep 26 15:22:51 CEST 2008
[INFO] Final Memory: 19M/64M
[INFO]
------------------------------------------------------------------------
[EMAIL PROTECTED] ~/tmp $ rm timestamp
[EMAIL PROTECTED] ~/tmp $ mvn help:active-profiles
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO]
------------------------------------------------------------------------
[INFO] Building foobar
[INFO] task-segment: [help:active-profiles] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] [help:active-profiles]
[INFO]
Active Profiles for Project 'bar:foo:jar:1.0.0':
The following profiles are active:
- foofoo (source: pom)
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Fri Sep 26 15:22:58 CEST 2008
[INFO] Final Memory: 19M/64M
[INFO]
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]