You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Krzysztof Sobolewski (Jira)" <ji...@apache.org> on 2022/06/22 12:37:00 UTC

[jira] [Created] (SUREFIRE-2104) user.language and user.region in systemPropertyVariables don't set default locale

Krzysztof Sobolewski created SUREFIRE-2104:
----------------------------------------------

             Summary: user.language and user.region in systemPropertyVariables don't set default locale
                 Key: SUREFIRE-2104
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-2104
             Project: Maven Surefire
          Issue Type: Bug
          Components: Maven Surefire Plugin
    Affects Versions: 3.0.0-M5
            Reporter: Krzysztof Sobolewski


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].



--
This message was sent by Atlassian Jira
(v8.20.7#820007)