Ganesh
Ganesh

Reputation: 307

Taking up a different time zone while building a maven project

I have a maven project where it depends on the different Timezone, Whenever I run a mvn install, I need to change my desktop time(IND) to US time zone(UTC-06:00).

Is there any way in the maven, while building a maven project it automatically picks up US time zone(UTC-06:00) ?

or any other way which we can solve this

I am using IntelliJ

Upvotes: 2

Views: 1251

Answers (1)

Daniel Andrzejewski
Daniel Andrzejewski

Reputation: 696

-Duser.timezone parameter solved my issue:

mvn clean install -B -U -e -Duser.timezone=Europe/Warsaw

Upvotes: 0

Related Questions