Fixed maven compile issue with java version