如何识别项目中包含的不必要的罐子? [英] How can I identify unnecessary jars included in my project?

查看:119
本文介绍了如何识别项目中包含的不必要的罐子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Java项目中工作,其中使用了Apache的axis 2库。轴2库由大约20个jar文件组成,其中一些不用于项目。我想知道是否有一种方法可以识别哪些jar文件是未使用过的。

I'm working in a Java project where the axis 2 library from Apache is being used. The axis 2 library is composed of about 20 jar files and some of these are not used project. What I want to know if there is a method to identify which of those jar files are the unused ones.

我正在使用Eclipse IDE,我认为这是一种方式解决问题的方法是在时间上添加一个jar,直到我得到关于缺少的类的错误消息。但是,我不确定这是否会起作用,因为一些缺失的类错误仅在运行时出现。

I'm using the Eclipse IDE an I thought that one way to solve the problem is to add one jar at time until the I get no error messages about the missing classes. However, I'm not sure if this will work as some of the missing classes errors show up only at runtime.

有没有人知道更好的方法来解决这个问题?

Does anyone know a better way to solve this problem?

推荐答案

tattletale FTW

tattletale FTW

http://www.jboss.org/tattletale

JBoss 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


  • 识别JAR文件之间的依赖关系

  • 如果一个类位于多个JAR文件中,则发现

  • 如果相同的JAR文件位于多个位置,则发现

  • 使用每个JAR文件所需内容的列表并提供

  • Identify dependencies between JAR files
  • Spot if a class 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

这篇关于如何识别项目中包含的不必要的罐子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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