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
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 .
4 Replies
JavaBot
JavaBot2mo ago
This post has been reserved for your question.
Hey @NeoCortex97! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
dan1st
dan1st2mo ago
IMO the maven-assembly-plugin is the easiest forget the maven-jar-plugin for fat jars https://maven.apache.org/plugins/maven-assembly-plugin/usage.html
dan1st
dan1st2mo ago
Stack Overflow
How can I create an executable/runnable JAR with dependencies using...
I want to package my project in a single executable JAR for distribution. How can I make a Maven project package all dependency JARs into my output JAR?
JavaBot
JavaBot2mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Want results from more Discord servers?
Add your server