Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-971

System environment variable are always added to maven-invoker

    XMLWordPrintableJSON

Details

    Description

      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:

              if ( request.isShellEnvironmentInherited() )
              {
                      cli.addSystemEnvironment();
               }
      

      but in org.apache.maven.shared.utils.cli.Commandline we have:

       public String[] getEnvironmentVariables()
          {
              addSystemEnvironment();
             ...
           }
      

      System environment variable are always added - it is inconsistent implementation.

      Attachments

        Issue Links

          Activity

            People

              sjaranowski Slawomir Jaranowski
              sjaranowski Slawomir Jaranowski
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: