This is what I did in my small projects,
1. First, create an empty project that acts as a container / parent for the components and projects of the user interface and services using the tags tag. You indicate in it as module . You can call it APP.
To create a project, you create an APP, which in turn builds both modules and deploys the APP to the server.
This is just an empty Maven project with only pom.xml
Specify packaging as war in pom.xml
2. Specify the service project as dependency for the user interface project.
3. Specify the APP project as parent both in the service and in the user interface project.
Hope this helps!
source share