Refactoring and update the rest interface for the maven plugin