Use maven 3.1 for compatibility with travis