The plugin supports three different usage modes: single-module , multi-module and restricted multi-module .
The single-module mode is the default.
It searches for binding definition files in the current project and compiles them using the project's classpath.
In its multi-module mode the plugin searches for binding definition files in the current and all referenced projects and runs the binding compiler with an aggregated classpath.
Just set the multi-module flag to true :
<configuration> <multi-module>true</multi-module> </configuration>
The restricted multi-module mode is basically the same as above but does not include all referenced projects but only those specified in the plugin's configuration.
The plugin automatically switches to its restricted multi-module mode if you specify a list of modules in its configuration section. The multi-module flag is optional:
<configuration>
<modules>
<module>com.example:example1</module>
<module>com.example:example2</module>
</modules>
</configuration>