Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-2104

user.language and user.region in systemPropertyVariables don't set default locale

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0-M7
    • None
    • Maven Surefire Plugin
    • None

    Description

      Surefire provides a way to pass system properties to the JVM that runs tests within the systemPropertyVariables section. But it appears that these properties are not actually passed correctly and, for example, the default system locale is not set when user.language and user.region properties are specified this way. A workaround exists, which is to use:

      <argLine>-Duser.language=en -Duser.region=GB</argLine>

      instead, which should be exactly the same. In fact, when both are used, a warning is issued that one of these is redundant.

      This is a "known" problem in the sense that it has its own Stack Overflow page: https://stackoverflow.com/questions/8901880/set-surefire-plugin-locale-in-maven-pom-file.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kudivuhadi Krzysztof Sobolewski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: