Use script for travis build to deploy snapshot only with jdk7