Servlet microservice - manual deploy
First of all you need to create microservice fat jar - jar with dependencies inside. To do so you just need to execute repackage
goal. You can just remove other goals from default configuration you copied. Then run command mvn package
. You microservice will be compiled and result file in your target directory will be your fat jar (for default configuration it should be named example-servlet-1.0-SNAPSHOT.jar
).
Next step is to put this file with all other required by your microservice (like servlet_configuration.yml, logger configuration file, properties file, etc.) into directory which name is your microservice name inside platform/application
directory.
For default microservice configuration file check docs here.
To start it just run control.sh/.cmd
and type in command microservice start [your_microservice_name]
.