Packaging maven submodules

My project has different components and everything is tied together with grpc, so everything is inside of one maven project to start with:
My maven submodule structure looks like this:
root
+- interface
     pom.xml
+- server
     pom.xml
+- part_a
  +- client_a
       pom-xml
  +- ui_a
       pom.xml
     pom.xml
+- part_b
  +- client_b
       pom-xml
  +- ui_b
       pom.xml
     pom.xml


And I would like my complete application part end up as a fat jar in the target folders of part _a and part_b respectively.
How would you configure maven to do this?

I tried a lot of configurations of the maven-jar-plugin and maven-shade-plugin .
Was this page helpful?