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:05:00 UTC

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

Akom created SUREFIRE-1782:
------------------------------

             Summary: 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


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)