How to compile and run multi-module jersey web service?
-
22-06-2021 - |
Question
I'm new to maven and I'm trying to create a new multi-module jersey web service following this tutorial. So now my project is composed of 3 maven modules:
* Model module
* Core module
* web service module
now, since I'm new to maven projects I don't know how to compile these modules and run my web service. What commands should I use when I update one of those 3 modules?
Solution
Usually one would run mvn clean install
in the parent project and then mvn jetty:run
from the web-service module (assuming you're using the Jetty plugin).
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow