AMQ-5047. Fix packaging issues related to maven version