gurvinder372 gurvinder372 -4 years ago 216
Java Question

How to add a jar in classpath in Heroku Java deployment?

I am not able to find any documentation on how to add a third party jar in the classpath for heroku deployment. As a result, I am getting compilation errors.

Answer Source

probably a year too late, but heroku.com says to follow these instructions. Works for me.

Adding Unmanaged Dependencies to a Maven Project

which essentially say to

  • Pick groupId, artifactId and version parameters
  • Create a local Maven repository directory
  • Deploy the Artifact Into the Repo
  • Update Pom file
  • Commit to Git

Hope this helps.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download