When I type
mvn --version
in command prompt I see:
Default Locale : en_US
However my System Loca
You can also use
-Duser.language=tr
This case works better when the argument is needed at the start of the JVM, as using maven-surefire-plugin
, your JVM is already running and the arguments won't be reloaded (that was my case using some initialization with @RunWith(SpringRunner.class)
and @SpringBootTest
to initialize a MockMvc
).