公理分布导致AspectJ的重复类问题.发行说明中的



Axiom 1.2.15 发行版状态:

The implementation JARs (axiom-impl and axiom-dom) are now built with AspectJ (to reduce source code duplication) and contain a small subset of classes from the AspectJ runtime library. There is a small risk that this may cause conflicts with other code that uses AspectJ.

好吧,这确实在我的AspectJ 1.9.2项目中引起了问题。马文抱怨道:

09:35:12,617 [WARNING] Found duplicate and different classes in [org.apache.ws.commons.axiom:axiom-dom:1.2.21, org.apache.ws.commons.axiom:axiom-impl:1.2.21, org.aspectj:aspectjrt:1.9.2, org.aspectj:aspectjweaver:1.9.2]:
09:35:12,619 [WARNING]   org.aspectj.lang.annotation.Aspect

我不能将 Axiom 排除在我们的项目中,因为它是由安讯士拉进来的。是否存在不包含 AspectJ 类的 Axiom 发行版,或者我需要构建自己的公理发行版?

这将在Axiom 1.2.23中修复。

最新更新