Java library dependencies

What is the easiest way to see library dependencies in a Java project (eclipse)?
I use Spring MVC and Hibernate, so there are a lot of jar files now, and I don’t even remember which one is responsible for what.

+4
source share
3 answers

See them how?

If you are using maven, use the dependency:tree plugin to get a hierarchical view of what depends on what.

If you are not, ew; manual transient control sucks! You can use something like Finder Finder or JDepend to provide similar information.

+2
source

Not sure if this is what you mean, but first you can right-click the project (in Eclipse) and look at Properties Java Build Path . On the Libraries tab, specify which libraries you use in your build path. (But you probably knew that.)

If this is a simple stand-alone project, you can, of course, always delete the library and see what interesting new errors appear; -)

For more complex projects with interdependencies, it can take a lot of effort to ensure that all your dependencies are correct. I usually recommend creating a "main" project that stores (and exports) most of your third-party JARs (best, use custom libraries , and put this project in the build path of your other projects.

Edit after reading your comment: Ah, gotcha ... you might be interested in the Widget Dependency Visualization project, then - haven I used it myself, but it looks like it could do what you need. Hope this helps!

+2
source

check the tattoo.

 http://www.jboss.org/tattletale 
+2
source

Source: https://habr.com/ru/post/1380696/


All Articles