Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0.9, 2.1.0-M1, 3.0-alpha-1
-
Fix Version/s: 2.0.11, 2.1.0, 3.0-alpha-1
-
Component/s: Inheritance and Interpolation
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
00:47 wsmoak I can't get ${env.PATH} to be evaluated in the pom... but only on Windows. Any ideas?
00:47 wsmoak echo %PATH% produces the right stuff. and it works fine with Maven 2.0.9 on OS X or linux
Issue Links
| This issue relates to: | ||||
| MNG-4136 | Regression: Environment Variables With Parenthesis Can't Be Referenced in POM |
|
|
|
| This issue is related to: | ||||
| MNG-1525 | Allow environment variables to be referenced in pom.xml, settings.xml, etc. |
|
|
|
| This issue depends upon: | ||||
| PLXUTILS-82 | Make CommandLineUtils.getSystemEnvVars() use casing rule of platform |
|
|
|
Thanks, Benjamin.
I was testing this by adding <properties><mypath>${env.PATH}</mypath></properties> to a pom and then running mvn help:effective-pom.
On Linux and OS X, the effective pom shows all the directories in the PATH environment variable. On Windows, it remains literally ${env.PATH}.
However, ${env.M2_HOME} is expanded on all three OSs, so it's not all environment variables on Windows.