如何列出JAR的依赖关系 [英] How to list dependencies of a JAR

查看:434
本文介绍了如何列出JAR的依赖关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个工具可以列出在JAR中引用的包含(第三方)类的第三方包让我们说,它会识别JAR文件定义中的home包,它将打印出在JAR中被引用的第三级的完全限定名称的列表。

  org.apache.commons 
org.apache.maven
javax.servlet.jsp
org.eclipse.persistence
org.apache.jackrabbit

目的是我需要找到该JAR文件的maven依赖项并将其部署为一个maven工件。

解决方案

JarAnalyzer


一个用于jar文件的依赖管理实用程序。主要目的是遍历目录,解析该目录中的每个jar文件,并识别jar文件之间的依赖关系。输出是一个xml文件,表示jar之间的 PhysicalDependencies



有关 PhysicalDependencies ,包括各种设计模式,请查看 可扩展Java ...



is there a tool that can list third party "packages" that contain (third party) classes referenced in the JAR ? Let say that it would recognize what is "home" package from JAR file definition and it would print out a list of fully qualified names of third party classes up to 3rd level that were referenced within the JAR.

org.apache.commons  
org.apache.maven
javax.servlet.jsp
org.eclipse.persistence
org.apache.jackrabbit

the purpose is that I need to find maven dependencies for that JAR file and deploy it as a maven artifact.

解决方案

JarAnalyzer:

a dependency management utility for jar files. It's primary purpose is to traverse through a directory, parse each of the jar files in that directory, and identify the dependencies between the jar files. The output is an xml file representing the PhysicalDependencies between the jar files.

For more information on PhysicalDependencies, including a variety of design patterns, check out Extensible Java...

这篇关于如何列出JAR的依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆