# Use docker-based build environment (instead of openvz)
sudo: false

language: java
jdk:
  - oraclejdk8

cache:
  directories:
    - '$HOME/.m2/repository'

after_success:
  - mvn clean test jacoco:report coveralls:report
# Use docker-based build environment (instead of openvz)
sudo: false

language: java
jdk:
  - oraclejdk8

cache:
  directories:
    - '$HOME/.m2/repository'

after_success:
  - mvn clean test jacoco:report coveralls:report
  - echo "<settings><servers><server><id>ossrh</id><username>\${env.OSSRH_USER}</username><password>\${env.OSSRH_PASS}</password></server></servers></settings>" > ~/settings.xml
  - mvn deploy --settings ~/settings.xml
Add deployment of SNAPSHOT artifacts after CI build to Sonatype OSS repository
Add deployment of SNAPSHOT artifacts after CI build to Sonatype OSS repository

Kudos go to http://notbarjo.blogspot.de/2014/09/travis-ci-maven-deploy.html
