Due to 3rd party app additional modules to the modules folder.
Example:
<module xmlns="urn:jboss:module:1.3" name="com.fasterxml.jackson.core.jackson-annotations">
provided by Wildfly 9 by default in
$JBOSS_HOME/modules/system/layers/base/com/fasterxml/jackson/core/jackson-annotations/main/
and the identical module, perhaps with different version, in
$JBOSS_HOME/modules/com/fasterxml/jackson/core/jackson-annotations/main/ provided by 3rd party app.
Which one is used when referencing this module by name? Is this defined?
com/fasterxml/jackson/core/jackson-annotations/main/ first?
one directly in modules/ will be loaded first.
see Layered Distributions and Module Path Organization for details, segment "Translation of Filesystem Layout into Module Loading Precedence" talks about this.