You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2020/12/29 16:21:00 UTC
[jira] [Created] (MSHARED-971) System environment variable are
always added to maven-invoker
Slawomir Jaranowski created MSHARED-971:
-------------------------------------------
Summary: System environment variable are always added to maven-invoker
Key: MSHARED-971
URL: https://issues.apache.org/jira/browse/MSHARED-971
Project: Maven Shared Components
Issue Type: Bug
Components: maven-invoker, maven-shared-utils
Reporter: Slawomir Jaranowski
In {{org.apache.maven.shared.invoker.MavenCommandLineBuilder}}
[https://github.com/apache/maven-invoker/blob/d58703dd592ba0bc6f0a09928d0cce90e4002af9/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java#L197-L242]
we have code:
{code}
if ( request.isShellEnvironmentInherited() )
{
cli.addSystemEnvironment();
}
{code}
but in {{org.apache.maven.shared.utils.cli.Commandline}} we have:
{code}
public String[] getEnvironmentVariables()
{
addSystemEnvironment();
...
}
{code}
System environment variable are always added - it is inconsistent implementation.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)