Refactoring maven script, it is a lot cleaner now.