posts - 88, comments - 3, trackbacks - 0, articles - 0
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

项目依赖分析工具

Posted on 2012-06-13 16:13 Milo的海域 阅读(695) 评论(0)  编辑  收藏 所属分类: JavaSkills
zane昨天推荐个项目依赖分析的工具: http://www.jboss.org/tattletale

JBoss Tattletale is a tool that can help you get an overview of the project you are working on
or a product that you depend on.

The tool will provide you with reports that can help you

* Identify dependencies between JAR files
* Find missing classes from the classpath
* Spot if a class/package is located in multiple JAR files
* Spot if the same JAR file is located in multiple locations
* With a list of what each JAR file requires and provides
* Verify the SerialVersionUID of a class
* Find similar JAR files that have different version numbers
* Find JAR files without a version number
* Find unused JAR files
* Identify sealed / signed JAR archives
* Locate a class in a JAR file
* Get the OSGi status of your project

使用方法
java -Xmx512m -jar tattletale.jar [-exclude=<excludes>] <scan-directory> [output-directory]

注意事项
tattletale只分析jar包之间的依赖,需要自己把所有的class文件打包放入scan-directory,然后把依赖的lib也放入同个目录

只有注册用户登录后才能发表评论。


网站导航: