Fix compatibility with maven 3