Try using Travis' automatic Maven handling.