Changed build method to maven