我正在使用JBoss-deployment-structure加载第三方模块,如下所示
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
<deployment>
<!-- This allows you to define additional dependencies, it is the same as using the Dependencies: manifest attribute -->
<!-- Note that the export="true" is necessary if these dependencies are to be seen by the sub-deployments -->
<!-- if export is not set or is set to false, then the dependencies are only visible to the classes in the jars in the ear lib -->
<dependencies>
<module name="deploy" />
</dependencies>
<resources>
<resource-root path="WEB-INF/lib"/>
</resources>
</deployment>
</jboss-deployment-structure>
现在我的模块部署包含jackson-core-2.1.3.jar和我在自定义war项目中使用的其他依赖jar。
我的自定义项目需要jackson-core-2.6.0.jar
,它存在于WEB-INF / lib文件夹中。
如何在类加载期间告诉JBOSS EAP6.4不加载jackson-core-2.1.3.jar
?实现这一目标的最佳方法是什么?
一种方法是在我的部署模块中注释该条目,但我们不能这样做。