Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku mvn not found error

Tags:

java

maven

heroku

I have one java application which is running in my local machine . I pushed it in to heroku now when I am trying to run it by run the command heroku run “mvn exec:java –Dexec.mainClass=”my main class””

it is giving

sh: mvn: not found

previously it was working fine I run that with same command now it is giving this error.

like image 583
gaurav Avatar asked Oct 12 '11 15:10

gaurav


1 Answers

We removed mvn from the compiled slug in an update a few weeks ago. You can read more about it here:

http://devcenter.heroku.com/articles/release-note-java-2011-09-29

In case you're wondering why you couldn't find this article, we just published it. Apologize for the delay.

like image 77
Jesper J. Avatar answered Sep 21 '22 18:09

Jesper J.