Try handle travis builds as java projects.