mirror of https://github.com/apache/nifi.git
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:
parent
f9b5bcf7bb
commit
8eb377e308
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue