|
Here's a patch, against maven-core 2.0.8, which makes profile activation via environment variables work.
Patch applied in r609944. Thanks!
Oops, this seems to have broken property passing in mvn exec:java - see
To reinvestigate due to Richard's comment
Looks like the system-property-setting has been reinstated, and the execution properties are still setup and used internally as specified in the patch. This is probably the best we can expect for now, unless/until we find a way to control the way plugins use (and more importantly, pass on to their delegates) the system properties.
I'm closing this issue. We can open a new one later if we need to fine-tune this behavior further. Yes, agreed that this seems the most sensible approach for now.
Thanks for sorting this, guys. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I've been unsuccessful trying to access the variable using the following methods within <profile>:
env.FOO
FOO
${env.FOO}
${FOO}
Any information reguarding this issue would be greatly appreciated... especially since this has been an issue for well over a year now (referring to http://jira.codehaus.org/browse/MNG-2276
).
Defining the variable via the commandline interface does work however, as stated in the link above.
Btw, my version of maven is 2.0.7