Refactor maven plugin.