Refactoring of project based on maven