ASM jar - Why my java project has a dependency on this?

前端 未结 4 584
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-05 22:47

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 bro

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-05 22:54

    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.

    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.

提交回复
热议问题