One of the ways to use global libraries in different applications can be achieved due to their availability in the form of modules. To do this, expand the modules with the library that you provide as the server provider.
:
test.jar , main (, modules/commons/test/main).
module.xml.
:
<module xmlns="urn:jboss:module:1.0" name="commons.test">
<resources>
<resource-root path="test.jar"/>
</resources>
</module>
.
, .
MANIFEST.MF:
Dependencies: commons.test
maven .
https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7
, . , . commons.test , .