com/stackoverflow/main
on ${WILDFLY_HOME}/modules
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="com.stackoverflow">
<resources>
<resource-root path="stackoverflow.jar"/>
</resources>
</module>
And now you have you module available to applications