{title:'Building and Running from Command-Line', created:'8.0.0'}
The
The easiest way to build your 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 my-jetty-microservice-1.0.jar
You should see the following console output:
| Running class 'JettyMicroservice' using config file 'mjm.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.