You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Akom (Jira)" <ji...@apache.org> on 2020/04/26 14:06:00 UTC

[jira] [Updated] (SUREFIRE-1782) Configured Environment Variables do not take effect unless also added to excludedEnvironmentVariables

     [ https://issues.apache.org/jira/browse/SUREFIRE-1782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Akom updated SUREFIRE-1782:
---------------------------
    Description: 
If the maven environment contains a variable (ie "JAVA_HOME") and it is also added to plugin configuration as below, the variable value is not seen unless configuration also contains an exclusion entry for this variable.


{code:xml}
<environmentVariables>
  <JAVA_HOME>junk</JAVA_HOME>
</environmentVariables>
{code}

{code:xml}
<excludedEnvironmentVariables>
  <excludedEnvironmentVariable>JAVA_HOME</excludedEnvironmentVariable>
</excludedEnvironmentVariables>
{code}


  was:
If the maven environment contains a variable (ie "JAVA_HOME") and it is also added to plugin configuration as below, the variable value is not seen unless configuration also contains an exclusion entry for this variable.


{code:xml}
<environmentVariables>
  <JAVA_HOME>junk</JAVA_HOME>
</environmentVariables>
{code}

{code:xml}
<excludedEnvironmentVariables>
  <excludedEnvironmentVariable>JAVA_HOME</excludedEnvironmentVariable>
</excludedEnvironmentVariables
{code}



> Configured Environment Variables do not take effect unless also added to excludedEnvironmentVariables
> -----------------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-1782
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1782
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: surefire-shared-utils
>    Affects Versions: 3.0.0-M4
>            Reporter: Akom
>            Priority: Minor
>
> If the maven environment contains a variable (ie "JAVA_HOME") and it is also added to plugin configuration as below, the variable value is not seen unless configuration also contains an exclusion entry for this variable.
> {code:xml}
> <environmentVariables>
>   <JAVA_HOME>junk</JAVA_HOME>
> </environmentVariables>
> {code}
> {code:xml}
> <excludedEnvironmentVariables>
>   <excludedEnvironmentVariable>JAVA_HOME</excludedEnvironmentVariable>
> </excludedEnvironmentVariables>
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)