Fixed java compliance bug with maven build