Refactor Maven configuration in order to support better testing between modules.