NIFI-3650 - Adjust travis to forcefuly remove $HOME/.m2/repository/org/apache/nifi/

This closes #1625.

Signed-off-by: Aldrin Piri <aldrin@apache.org>
This commit is contained in:
Andre F de Miranda 2017-03-26 23:06:41 +11:00 committed by Aldrin Piri
parent f9b5bcf7bb
commit 8eb377e308
No known key found for this signature in database
GPG Key ID: 531AEBAA4CFE5D00
1 changed files with 7 additions and 2 deletions

View File

@ -33,6 +33,9 @@ cache:
directories:
- $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: