The smartics JBoss Modules Maven Plugin, a plugin for Maven, has been released with version 0.2.0.
This plugin allows to generate a modules folder according to JBoss Modules. The dependencies from a Maven POM are used together with module descriptors to generate the target directory structure together with the module.xml
files. This is useful if you want to provide libraries as modules or if you are writing an extension for the JBoss AS 7.
This version of the plugin moves the module declaration from the POM to external files. This will make it easier to create the module declarations. An XSD is now also provided!
The new basic structure is this:
<modules xmlns="http://smartics.de/ns/jboss-modules-descriptor/1">
<module name="" slot="">
<directives>
...
</directives>
<match>
...
</match>
<apply-to-dependencies>
...
</apply-to-dependencies>
<apply-to-module>
...
</apply-to-module>
</module>
<module>
...
</module>
</modules>