I want to deliver a single .jar file to my clients, but my project is currently built with Maven, and I have several modules that generate a single .jar each.
I know nesting different .jar files is not a great idea, so I am not sure how can I achieve this.
Any ideas?
In order to compile the project into an executable jar, please run Maven with mvn clean package command.
Normally when I deliver a maven project to a client, I just do a "mvn clean" followed by a zip-and-ship of the cleaned project directory. If my project is self-contained (and ideally it is), that's all the recipient needs.
If you really want to go this direction, there are several ways to do that:
jar-with-dependencies
predefined assembly descriptor (that will unpack dependencies)Depending on your exact requirements and constraints, you might prefer one or the other.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With