I have a big jar file that has a lot of dependencies on other jar files ~40 files totaling a few hundred MB. I'm worried about dependencies issues with this jar file so I would like the to add the required dependencies to the Manifest file of this jar at compile time. I'm wondering if there are negative drawbacks to this approach. I've done some testing on class load times and they don't really seem to be affected all that much.
Another reason I want to move the dependencies into the jar's manifest is that with so many files the command line gets long and hard to read. We have a lot of -XX options etc. as well being passed into the JVM but it looks like there isn't a way to set these in the manifest or in some sort of configuration file though.
If you depend on these jars, then it's OK. 40 dependencies is not that much, actually, so don't consider that a problem. Just make sure you don't include unused dependencies.
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