This is an automated email from the ASF dual-hosted git repository.

billyliu pushed a commit to branch update_travis_maven
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit 4ae34353eb0a2b51cea2d01c965f688c54d6be5d
Author: Billy Liu <billy...@apache.org>
AuthorDate: Wed Sep 12 22:04:46 2018 +0800

    minor, update maven to 3.5.4 in travis build
---
 .travis.yml | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 1941c76..bd250ef 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -25,11 +25,16 @@ addons:
 
 cache:
   directories:
-    - $HOME/.m2
-
+    - "$HOME/.m2/repository"
+    - "$HOME/apache-maven-3.5.4"
 jdk:
   - oraclejdk8
 
+before_install:
+  - export M2_HOME=$HOME/apache-maven-3.5.4
+  - if [ ! -d $M2_HOME/bin ]; then curl 
https://archive.apache.org/dist/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz
 | tar zxf - -C $HOME; fi
+  - export PATH=$M2_HOME/bin:$PATH
+
 before_script:
   - echo "MAVEN_OPTS='-Xms1024m -Xmx3072m -XX:MetaspaceSize=128m 
-XX:MaxMetaspaceSize=384m'" > ~/.mavenrc
 

Reply via email to