Maven default locale not same with OS locale

前端 未结 3 2160
天涯浪人
天涯浪人 2021-02-20 06:44

When I type

mvn --version

in command prompt I see:

Default Locale : en_US

However my System Loca

3条回答
  •  长发绾君心
    2021-02-20 07:18

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

提交回复
热议问题