i can not create docker image of my spring boot file can some body help me

Posted by SentenceLivid6246@reddit | programming | View on Reddit | 3 comments

Hello,

I'm trying to build a Docker image for my Spring Boot project using the command ./mvnw clean spring-boot:build-image, but my build keeps failing during the test phase.

It fails when trying to connect to the PostgreSQL database with this error:

Caused by: org.postgresql.util.PSQLException: FATAL: invalid value for parameter "TimeZone": "Asia/Calcutta"

Here is what I have already tried to fix this, without success:

  1. Searched Project: I have searched my entire project directory (including src/main/resources and src/test/resources) for the string "Asia/Calcutta". It is not in any of my source code. The only place it appears is in the error logs inside the target/ folder.
  2. Checked Test Config: I do not have a src/test/resources/application.properties file that could be overriding my main config.
  3. Forced Timezone in pom.xml: I tried forcing the correct timezone by adding this to the <plugins> section of my pom.xml, but I still get the same error