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

maven-invoker - addShellEnvironment forgets variable settings on successive calls

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • maven-invoker-2.1.1
    • maven-invoker-2.2
    • maven-invoker
    • None
    • maven-invoker-plugin 1.9
    • Patch

    Description

      On every call of addShellEnvironment(String, String) on DefaultInvocationRequest the already passed environment variables are deleted, because a new HashMap for storing the environment variables is created every time. This renders the "environmentVariables" parameter of maven-invoker-plugin unusable when used with more then one environment variable.

      This issue has already been reported 2013 on maven-users but no JIRA has been created so this got lost.

      Attachments

        1. fix-addShellEnvironment.patch
          3 kB
          Holger Mense

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              p2501 Holger Mense
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: