Upgrade maven plugin version and fix some bugs