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
|
@ -31,8 +31,11 @@ jdk:
|
||||||
# Caches mvn repository in order to speed upbuilds
|
# Caches mvn repository in order to speed upbuilds
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.m2
|
- $HOME/.m2
|
||||||
- $HOME/.npm
|
- $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
|
# 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
|
# 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
|
- 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
|
- echo "MAVEN_OPTS='-Xmx2g -XX:+UseG1GC'" > ~/.mavenrc
|
||||||
- cat ~/.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
|
- mvn -q apache-rat:check
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
Loading…
Reference in New Issue