add jersey dependencies to your application on heroku and local tomcat
download as web.xml
web.xml |
Add the java file containing your first web service
Download as Sandbox.java
sandbox.java |
in the project's root directory run:
mvn clean package
then
mvn eclipse:eclsipe
go back to the application and refresh the project
To ensure that the Tomcat running in Eclipse picks up the maven dependencies, include them in deployment assembly:
right click on <project name> -> Properties->Deployment Assembly->Add-> Java Build Path Entries -> choose maven dependencies
git add .
git commit -m "first commit"
git push heroku master
heorku open
You should now see following
mvn clean package
then
mvn eclipse:eclsipe
go back to the application and refresh the project
To ensure that the Tomcat running in Eclipse picks up the maven dependencies, include them in deployment assembly:
right click on <project name> -> Properties->Deployment Assembly->Add-> Java Build Path Entries -> choose maven dependencies
git add .
git commit -m "first commit"
git push heroku master
heorku open
You should now see following