Reputation: 23
Is there any possibility to have a minify JAR after the maven's project assembly? I'm working at big java server project with Spring Framework, the final Jar archive is about 120 Mb. Our frontend developers added some plug-in, which compresses their part of the web application. And now i'm trying to find some way for backend.
Maven default compress is not enough
Upvotes: 2
Views: 1705
Reputation: 7290
Welcome in dependency hell (I bet the majority isn't code written at your company, but coming from some "useful" libraries).
Have a look at the maven dependency tree, identify the biggest contributors, and ask your fellow developers if these libraries are really necessary (good luck!)... The fact that some pom.xml
declares a dependency doesn't guarantee that it's really used for your application.
You'll not only get a smaller JAR, but also reduce the risk of transitive version incompatibilities in the future.
Upvotes: 3