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}?


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: (need to use ARG)


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.