Mvn clean install not works with env variables

When trying to execute the “mvn clean install” command the following error is thrown:

Caused by: java.lang.RuntimeException: Driver org.postgresql.Driver claims to not accept jdbcUrl, ${DB_URL}

“mvn clean install” not works with application.yml env variables like secret_key: ${ENCRYPTION_KEY}?

Hi,

As you’re referring to Java, you’ll be using Docker. To use environment variables with Docker during the build, you’ll need to refer to these docs: https://docs.render.com/docker-secrets#environment-variables-in-docker-builds (need to use ARG)

Alan