How to run examples using maven Jetty plugin

You need Maven 2 installed.

Download lib.web distribution, unzip it and run run-examples.sh script (for MS Windows, run run-examples.bat):

$ wget http://dimgel.ru/lib.web/files/lib.web-0.3.3.tar.bz2
$ tar xjf lib.web-0.3.3.tar.bz2
$ cd lib.web-0.3.3
$ ./run-examples.sh

This script:

  • builds library jar (in lib.jar/target subdirectory),
  • runs all unit-tests and integration tests,
  • installs library into your local maven repository,
  • compiles example sources,
  • runs Jetty server (maven jetty plugin).

After you see the message:

[INFO] Starting scanner at interval of 5 seconds.

point your your browser to http://localhost:9090/ (attention: notice port 9090, not 8080). To stop Jetty server, press Ctrl+C in console.

See also: how to deploy lib.web.example.war to Tomcat.