First, I’ve configured the pom file to copy the jetty-runner library to the final artifact.
Then, I’ve created the Procfile file, where I specify how to execute the project:
I also created a system.properties file, to set the Java version:
To configure the Heroku database in my project, I’ve created a specific configuration file and followed the official documentation:
To test the web application in local, I’ve used Tomcat and H2, for this reason I’ve needed to maintain two profiles: local and heroku by default (to deploy in production):