Refactor the maven plugin and update README.md