how do you suggest me to make one module communicate with another? I need to build one main module that other modules will depend on it (class reference).
Something like module dependency with shared classpath...
As far as development goes, if you are using Eclipse you can add a project (the dependency) to the build path of another project (the dependent). For deployment you can add add a "dependencies" property to your dependent module. This is a comma-delimited list of module/version identifiers of the form moduleName-M.m.u. The version part is optional, as are the versions sub-parts.