Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 2.0.6
-
Fix Version/s: None
-
Component/s: Profiles
-
Labels:None
-
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)
-
Complexity:Intermediate
Description
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] ----------------------------------------------------------------------------
....
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.