Analyze JAR dependencies in a Java project [closed

2020-02-04 12:29发布

I'm looking for a tool that will show me a graph of JAR dependencies in my Java project based on static analysis of the compiled byte code. Specifically, I'm trying to figure out if there are unused JARs that I can eliminate, but I'd also just like to get a better understanding of the dependencies that exist. I'm not using Maven.

Dependency Finder comes close, but it deals in packages rather than JARs and there doesn't seem to be any way to query it for JARs that have no dependents. Any recommendations? Free and open source preferred. Thanks!

6条回答
啃猪蹄的小仙女
2楼-- · 2020-02-04 12:45

You can try this tool that displays the public resources of a library and calculates a ratio of usage between two Jars: http://trimatek.org/deep

查看更多
聊天终结者
3楼-- · 2020-02-04 12:45

Or Maven. Elcipse plugin shows it very nicely. Even shows dependencies on the dependencies.

查看更多
兄弟一词,经得起流年.
4楼-- · 2020-02-04 12:50

JBoss Tattletale does exactly what I need.

查看更多
SAY GOODBYE
5楼-- · 2020-02-04 12:58

You can use JArchitect is a static analysis tool to improve java code quality and it's free for opensource contributors and universities

查看更多
The star\"
6楼-- · 2020-02-04 13:02

Take a look on JDepend.

JDepend traverses Java class file directories and generates design quality metrics for each Java package. JDepend allows you to automatically measure the quality of a design in terms of its extensibility, reusability, and maintainability to manage package dependencies effectively.

查看更多
爷的心禁止访问
7楼-- · 2020-02-04 13:05

See also JarAnalyzer which claims to:

... traverse through a directory, parse each of the jar files in that directory, and identify the dependencies between the jar files.

查看更多
登录 后发表回答