rest_demo
/rest_demo
mvn clean install jetty:run -Djetty.port=8888 -DskipTests=true
localhost:8888
Note: you could run a similar configuration from Eclipse if you have the m2e plugin installed - see pic below
Note: after you
mvn install
the application, you can deploy the generated .war file in any web container like Tomcat for example.
Run the following maven command on the console in the root directory of the project
mvn clean install verify -Djetty.port=8888
OR
the same in Eclipse
Tutorial – REST API design and implementation in Java with Jersey and Spring - complete explanation of this implementation.