Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying Java project to Heroku without Maven-supported dependencies

Tags:

java

maven

heroku

Is anyone working with Heroku for Java?

I have one Java project which I want to deploy on Heroku. That project uses some external JAR files which contains important dependencies.

Can anyone tell me how to deploy my project with these JAR files to Heroku? Maven is not able to download these JAR files on Heroku.

like image 640
gaurav Avatar asked Sep 19 '11 09:09

gaurav


People also ask

Does Heroku support Maven?

Heroku provides support for Maven Wrapper, which is the recommend mechanism for defining a Maven version. If Heroku detects a mvnw file in the root directory of your repository, it will use this script to launch the Maven process.

Can I host a Java application on Heroku?

You can deploy any Java application on Heroku. It is not limited to JEE or other frameworks. You can deploy Java web applications packaged as WAR files using WAR deployment or you can deploy Maven based Java projects of any kind using the git versioning system.

Does Heroku support Java 17?

As of October 2021, Heroku supports Java versions 1.7, 1.8, 11, 13, 15, 16 and 17.

Does Heroku support Java 15?

After your next deployment, Heroku will install and run your app with OpenJDK 15. For more information, see the article on Heroku Support for Java in the Dev Center.


1 Answers

We just published a guide showing how to add dependencies like this to your project:

http://devcenter.heroku.com/articles/local-maven-dependencies

Let me know if this works for you.

like image 168
Jesper J. Avatar answered Sep 23 '22 18:09

Jesper J.