ASM jar-为什么我的Java项目对此有依赖关系? [英] ASM jar - Why my java project has a dependency on this?

查看:58
本文介绍了ASM jar-为什么我的Java项目对此有依赖关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Java项目,并且在内部它依赖于asm jar.奇怪的是,我什至不知道为什么我的项目以某种方式依赖于此库(可能由maven作为传递依赖项引入)?

I have a Java project and internally it is dependent on asm jar. Strangely, I don't even know why my project somehow is dependent on this library (might be brought in by maven as a transitive dependency)?

任何人都可以帮助我知道为什么有人需要asm jar ?

Can anyone help me know why some one needs asm jar?

提前谢谢!

您还能提及一个人可能需要asm jar的目的/用例吗?

Can you also mention for what purposes/use-cases one might need asm jar?

推荐答案

ASM 是字节码操作框架(请参阅此页面以获取很好的介绍),并且被许多用于执行...字节码操作:使用代理生成和反射的框架(Spring,Hibernate等),模拟框架( EasyMock ,JMock等),代码分析工具( PMD 查找错误等).实际上,ASM项目维护一个按类别组织的用户的列表,将其检出.

ASM is a bytecode manipulation framework (see this page for a nice introduction) and is used by many things performing... bytecode manipulation: frameworks using proxy generation and reflection (Spring, Hibernate, etc), mocking frameworks (EasyMock, JMock, etc), code analysis tools (PMD, Findbugs, etc). Actually, the ASM project maintains a list of users organized by category, check it out.

如Vincent所述,如果您暂时依赖ASM,则依赖性报告(有关示例,请参见上面的PMD和Findbugs链接)可以帮助分析情况并找出其来源.但这不会考虑您所使用的Maven插件的依赖性,而仅考虑项目的依赖性.

As mentioned by Vincent, if you are depending transitively on ASM, the dependency:tree goal or the dependency report (see the PMD and Findbugs links above for examples) can help to analyze the situation and to find out from where its coming from. But this won't take into account dependencies of maven plugins that you are using, only dependencies of your project.

这篇关于ASM jar-为什么我的Java项目对此有依赖关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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