Search code examples
jboss7.xjboss-eap-6

Exclude module dependencies in jboss AS 7 (EAP 6) when using MANIFEST.MF


I know I can make it using jboss-deployment-structure.xml, but Is it doable using MANIFEST.MF?


Solution

  • From the source code, the method: o.j.a.s.d.m.ModuleSpecification.addExclusion is only called by o.j.a.s.d.m.d.DeploymentStructureDescriptorParser, and the o.j.a.s.d.m.ManifestDependencyProcessoronly add modules (no exclusions).

    So, the Answer AFAIK is NO, we cannot use MANIFEST.MF to define module exculsions.