refactoring and integration with jenkins and maven