You need to add the Heroku plugin as maven dependencies to get the maven dependencies added to heroku.
Deploy standalone applications
<build> <plugins> <plugin> <groupId>com.heroku.sdk</groupId> <artifactId>heroku-maven-plugin</artifactId> <version>2.0.1</version> <configuration> <appName>${heroku.appName}</appName> <processTypes> <web>java $JAVA_OPTS -cp target/classes:target/dependency/* Main</web> </processTypes> </configuration> </plugin> </plugins> </build>
Now, if you have Heroku Toolbelt installed, run:
$ mvn heroku:deploy
Deploy WAR Files
<build> <plugins> <plugin> <groupId>com.heroku.sdk</groupId> <artifactId>heroku-maven-plugin</artifactId> <configuration> <appName>${heroku.appName}</appName> </configuration> </plugin> </plugins> </build>
Now, if you have Heroku Toolbelt installed, run:
$ mvn heroku:deploy-war
source share