]
Yeray Borges updated WFLY-11405:
--------------------------------
Summary: Remove unused dependencies in org.jboss.as.ee (was: Remove unused
dependencies from org.jboss.as.ee)
Remove unused dependencies in org.jboss.as.ee
---------------------------------------------
Key: WFLY-11405
URL:
https://issues.jboss.org/browse/WFLY-11405
Project: WildFly
Issue Type: Bug
Reporter: Yeray Borges
Assignee: Yeray Borges
Priority: Minor
Analisys shows the following dependencies can be removed from org.jboss.as.ee module:
{code:java}
<module name="javax.transaction.api"/>
<module name="javax.xml.ws.api" optional="true"/>
{code}
* There are no direct dependencies to any class managed by those modules from wildfly-ee
resource.
* Those modules are not exporting services that can be loaded by any other class.
* Although there are some {{getClassLoader().loadClass}} calls in some classes in
wildfly-ee.jar, those {{loadClass}} calls are done using the Deployment Unit module class
loader, where the removed modules are added by other deployment processors in previous
phases.
One motivation to create this issue is that, in general, be able to remove any unused
dependency marked as optional="true" is good for Galleon, because we will be
sure that the provision is correct without including those optional dependencies.