我试图排除 JBOSS 7.1.1 中的模块,看起来 JBOSS 只是忽略了我的 jboss-deployment-structure.xml。
我已将它放在我 EAR 的 META-INF 中。这是我的配置文件的示例:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
<deployment>
<exclusions>
<module name="java.xml.bind.api" /> <!- still see it there -->
<module name="somerandomname" /> <!- does not even complain when this doesn't exist -->
</exclusions>
</deployment>
</jboss-deployment-structure>