From d4630aa6547a64c7112f2bf133138d7d83b6d1a8 Mon Sep 17 00:00:00 2001 From: Krzysztof Sobolewski Date: Wed, 25 May 2022 17:18:25 +0200 Subject: [PATCH] Fix the way locale information is passed to Surefire This moves primarily the `user.language` and `user.region` from `systemPropertyVariables` to explicit property setting on the JVM. These two methods to set them are supposed to be the same, but passing via system properties does not actually work. Which is annoying, because when the are set in both ways, Surefire complains about it: ``` [WARN] The system property user.language is configured twice! The property appears in and any of , or user property. [WARN] The system property user.region is configured twice! The property appears in and any of , or user property. ``` It seems that the `user.timezone` actually works as expected, but is moved along with the other two for consistency. --- CHANGES.md | 4 ++++ airbase/pom.xml | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index c00cbb036..33e12a73b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,7 @@ +Airbase 126 + +* Fix the way locale information is passed to maven-surefire-plugin + Airbase 125 * Checkstyle updates: diff --git a/airbase/pom.xml b/airbase/pom.xml index 3d5dcd41b..ea63de1ab 100644 --- a/airbase/pom.xml +++ b/airbase/pom.xml @@ -426,9 +426,6 @@ ${project.build.sourceEncoding} - ${air.test.timezone} - ${air.test.language} - ${air.test.region} true %1$tY-%1$tm-%1$tdT%1$tH:%1$tM:%1$tS.%1$tL%1$tz %4$s %5$s%6$s%n @@ -440,6 +437,13 @@ ${argLine} + + + -Duser.timezone=${air.test.timezone} + -Duser.language=${air.test.language} + -Duser.region=${air.test.region} + -Dfile.encoding=${project.build.sourceEncoding} -Xmx${air.test.jvmsize} -Xms${air.test.jvmsize}