Over the course of developing my Spring MVC project, I've accumulated an overabundance of JARs, many of which I suspect are no longer necessary.
I see that Eclipse has a plugin that can help find unused JARs. Is there an equivalent for Netbeans or something that works on the command line?
Remove -> Test -> Remove -> Test -> Remove -> Hope you enjoy :) Change project to maven and select only jar you wanna use. For me this is the easiest way.
1) Click on Files tab on the left side of the project panel in NetBeans. 5) And here you done. Now you can go and check just like dist folder there will be a store folder which will be containing your final complete jar including all of your dependent libraries.
I don't think this can be done in a reliable way.
What if you have classes that are loaded via reflection? What if you have classes that are only referenced from within a Spring XML file?
They will never show up in the Java source code
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