-
Enhancement
-
Resolution: Won't Do
-
Optional
-
None
-
None
-
None
AS7 automatically loads the weld-core module with any deployment which contains the beans.xml marker file. This doesn't seem like best practice. Only the APIs should be exposed by default.
From weld/src/main/java/org/jboss/as/weld/deployment/processors/WeldDependencyProcessor.java:
addDependency(moduleSpecification, moduleLoader, JAVAX_PERSISTENCE_API_ID); addDependency(moduleSpecification, moduleLoader, JAVAEE_API_ID); addDependency(moduleSpecification, moduleLoader, JAVASSIST_ID); addDependency(moduleSpecification, moduleLoader, WELD_CORE_ID); addDependency(moduleSpecification, moduleLoader, WELD_API_ID); addDependency(moduleSpecification, moduleLoader, WELD_SPI_ID);