Refact the cat maven plugin