modularised structure into maven pattern