[travis] Enable caching for Maven repository

http://docs.travis-ci.com/user/caching/
(cherry picked from commit 2a20ce8c895091c8489e97404e75edc423dd19e4)