refactor project for maven plugin