switch to docker based travis build and adds caching for local .m2 repository
(cherry picked from commit 37ee51f)