You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (Jira)" <ji...@apache.org> on 2021/04/17 14:51:00 UTC
[jira] [Updated] (MSHARED-971) System environment variable are
always added to maven-invoker
[ https://issues.apache.org/jira/browse/MSHARED-971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte updated MSHARED-971:
-----------------------------------
Issue Type: Improvement (was: Bug)
> 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: Improvement
> Components: maven-invoker, maven-shared-utils
> Reporter: Slawomir Jaranowski
> Priority: Minor
>
> 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)