Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6726

Integration tests should use non empty MAVEN_OPTS. Jenkinsfile and 'core-it-suite' should accept custom MAVEN_OPTS from developers and their CLI.

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Integration Tests
    • None
    • Jenkins CI, development environment too

    Description

      Using non-empty MAVEN_OPTS (dummy prop) to prevent from merging env vars in child integration test with env vars from (caller) parent process.

      The child env var takes the precedence in this fix.
      Merging env vars between parent/child processes is performed in maven-shared-utils:
      see Commandline#addSystemEnvironment() and see the line
      Properties systemEnvVars = CommandLineUtils.getSystemEnvVars().

      With this fix we can freely use the MAVEN_OPTS within our integration tests.

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              tibordigana Tibor Digana
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: