{8.0.0-new,8.1.2-deprecated} Building and Running from Command-Line

The pom.xml file is a basic Maven build script for creating the examples microservice as an executable uber-jar.

The easiest way to build the microservice is to run the following from the project root.

mvn clean install

Your target directory should now contain the following files:

To start from a command line, run the following command from inside your target directory:

java -jar juneau-examples-rest-jetty-1.0.jar

You should see the following console output:

Running class 'JettyMicroservice' using config file 'juneau-examples-rest-jetty.cfg'. Server started on port 10000 List of available commands: exit -- Shut down service restart -- Restarts service help -- Commands help >

If you get this error message: java.net.BindException: Address already in use, then this microservice is already running elsewhere and so it cannot bind to port 10000.