{8.0.0-new,8.1.2-deprecated} Building and Running from Command-Line
The
The easiest way to build the microservice is to run the following from the project root.
mvn clean install
Your
To start from a command line, run the following command from inside your
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.