Maven 3.10.0 is now the default Maven version for Java apps

Change effective on 12 November 2026

Java apps on Heroku now build with Maven 3.10.0 by default. Apps that don’t use the Maven Wrapper and don’t set maven.version in system.properties will use Maven 3.10.0 on their next deploy.

We recommend using the Maven Wrapper to control which Maven version builds your app. Your app then builds with the same Maven version on Heroku as on your local machine. To keep using the previous default, Maven 3.9.4, run this command in the root of your application and add the generated files to your Git repository:

mvn wrapper:wrapper -Dmaven=3.9.4

For more information on Maven and its versions, see the Apache Maven documentation. See the Dev Center for more information on specifying a Maven version.