mybatis_repo=$(git config --get remote.origin.url 2>&1)
if [ "$mybatis_repo" == "https://github.com/mybatis/hazelcast-cache.git" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
  mvn -X deploy --settings ./travis/settings.xml
  echo -e "Successfully deployed SNAPSHOT artifacts to Sonatype under Travis job ${TRAVIS_JOB_NUMBER}"
fi
mybatis_repo=$(git config --get remote.origin.url 2>&1)
if [ "$mybatis_repo" == "https://github.com/mybatis/hazelcast-cache.git" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
  mvn deploy --settings ./travis/settings.xml
  echo -e "Successfully deployed SNAPSHOT artifacts to Sonatype under Travis job ${TRAVIS_JOB_NUMBER}"
fi
Revert "With the previous commit, sonatype returned error 401 Unauthorized. Added -X switch for debugging."
Revert "With the previous commit, sonatype returned error 401 Unauthorized. Added -X switch for debugging."

This reverts commit 7af276cbda241680d8149e4d7e0496d6717992fa.
