

The following environment variables will be set in dyno at boot-time: The maven repo is cached between builds to improve performance.

You can override this behavior by explicitly setting a Maven version. However, if Heroku detects a mvnw script in your application’s repository, it will run this instead of the default Maven installation. The following command is run to build your app: $ mvn -B -DskipTests clean dependency:list install When a deployed application is recognized as a Java application, Heroku responds with Java app detected. Heroku Java support for Maven will be applied to applications that contain a pom.xml. The default build system for Java application on Heroku is Maven. You can read about Play framework support in the Play framework support reference. General Java support on Heroku refers to the support for all frameworks except for Play.

This document describes the general behavior of Heroku as it relates to the recognition and execution of Java applications. Heroku is capable of running Java applications across a variety of Java implementations and includes support for framework-specific workflows.
