2 ms·
I have hundreds of jar in my Java project. I am not even sure which one are used. How does Java handle this scenario?
by geodel 11y ago
I have hundreds of jar in my Java project. I am not even sure which one are used. How does Java handle this scenario?
- kasey_junk 11y agoDepends on your build system. In maven http://maven.apache.org/plugins/maven-dependency-plugin/ http://maven.apache.org/plugins/maven-dependency-plugin/ is the way to go.
- Nullabillity 11y agoIf you use Maven/Ivy then your transitive dependencies are automatically managed based on your direct dependencies. If you don't, or if that's not enough, use ProGuard to get rid of all the classes that you aren't actually using.