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:
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
⌛
This post has been reserved for your question.
Hey @NeoCortex97! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose 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.
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
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?
💤
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.