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:49:00 UTC

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

     [ https://issues.apache.org/jira/browse/SUREFIRE-2104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Krzysztof Sobolewski updated SUREFIRE-2104:
-------------------------------------------
    Affects Version/s: 3.0.0-M7
                           (was: 3.0.0-M5)

> 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-M7
>            Reporter: Krzysztof Sobolewski
>            Priority: Major
>
> 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)