Change effective on 04 January 2016
Heroku’s support for Java applications built with Maven now includes a
JDBC_DATABASE_URL environment variable that is available at build-time. This variable is identical to the one available at runtime.
For more information, see the Dev Center article on Connecting to Relational Databases on Heroku with Java.