RAP on the Quick: The pure Maven Way

September 13, 2012 | 1 min Read

Lately I was talking with a colleague if it is possible to kickstart a RAP standalone “Hello World” example in less than a coffee break(*).

Well it depends…

on the content of your local Maven directory and/or your internet connection. ;-)

To make this happen you should postpone getting your coffee for now. Just go to a local temporary folder and grab the sample project from GitHub[1]

cd /tmp
git clone git://github.com/eclipsesource/rap-maven-examples.git

Change into the directory of the example and start the RAP example with the Maven-Jetty-Plugin:

cd rap-maven-examples/com.eclipsesource.rap.examples.maven
mvn jetty:run

Now it’s a perfect time to go and get some tea or coffee…

[INFO] Scanning for projects...
...
2012-09-13 09:12:07.425:INFO:oejs.AbstractConnector:Started [email protected]:8080
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 10 seconds.

Point your browser to https://localhost:8080/maven_example and see the RAP example in action.

If you have a fast internet connection I’m pretty positive that your coffee is still hot. So maybe there is even some time of the coffee break left to have a look at the example code…or to leave a comment.

[1] RAP Maven examples - https://github.com/eclipsesource/rap-maven-examples

Stay Updated with Our Latest Articles

Want to ensure you get notifications for all our new blog posts? Follow us on LinkedIn and turn on notifications:

  1. Go to the EclipseSource LinkedIn page and click "Follow"
  2. Click the bell icon in the top right corner of our page
  3. Select "All posts" instead of the default setting
Follow EclipseSource on LinkedIn