I don't think we should support multiple modules per directory (although we do need to handle config/classes that need to be shared across more than 1 module, possibly even a middle level for the classloader - between the "XD-dirt" layer and the "module instance" layer). Therefore, I would consider using the pattern "config/*.xml" for the module configuration. Other config files that needs to be imported conditionally (e.g. based on profile) could be provided via sub-directories or anywhere within the lib (and obviously within the lib if java-config).