Reputation: 307
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
Reputation: 696
-Duser.timezone parameter solved my issue:
mvn clean install -B -U -e -Duser.timezone=Europe/Warsaw
Upvotes: 0