diff --git a/.travis.yml b/.travis.yml index 16985b75dd..3a5cc36900 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,8 +31,11 @@ jdk: # Caches mvn repository in order to speed upbuilds cache: directories: - - $HOME/.m2 - - $HOME/.npm + - $HOME/.m2 + - $HOME/.npm +before_cache: + # Remove nifi repo again to save travis from caching it + - rm -rf $HOME/.m2/repository/org/apache/nifi/ # before_install aids in a couple workarounds for issues within the Travis-CI environment # 1. Workaround for buffer overflow issues with OpenJDK versions of java as per https://github.com/travis-ci/travis-ci/issues/5227#issuecomment-165135711 @@ -43,6 +46,8 @@ before_install: - sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml - echo "MAVEN_OPTS='-Xmx2g -XX:+UseG1GC'" > ~/.mavenrc - cat ~/.mavenrc + # Remove nifi repo again to save travis from caching it + - rm -rf $HOME/.m2/repository/org/apache/nifi/ - mvn -q apache-rat:check install: