language: java
jdk:
    - oraclejdk8
    - oraclejdk7
    - openjdk7
before_install:
    - echo $TRAVIS_JDK_VERSION
    - wget -O maven.tar.gz http://www-eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
    - mkdir maven
    - cd maven ; tar --strip-components=1 -xzf ../maven.tar.gz ; cd ..
    - chmod a+x maven/bin/mvn
    - export M2_HOME=$PWD/maven
    - export PATH=$PWD/maven/bin:${PATH}
    - hash -r

before_script:
    - export M2_HOME=$PWD/maven
    - export PATH=$PWD/maven/bin:${PATH}
    - hash -r
language: java
jdk:
    - oraclejdk8
    - oraclejdk7
    - openjdk7
before_install:
    - if [[ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]]; then wget -O maven.tar.gz http://www-eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz ; fi
    - if [[ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]]; then mkdir maven ; cd maven ; tar --strip-components=1 -xzf ../maven.tar.gz ; cd .. ; chmod a+x maven/bin/mvn ; export M2_HOME=$PWD/maven ; export PATH=$PWD/maven/bin:${PATH} ; hash -r ; fi

before_script:
    - if [[ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]]; then export M2_HOME=$PWD/maven ; export PATH=$PWD/maven/bin:${PATH} ; hash -r ; fi
Install custom maven only for oracle jdk 8.
Install custom maven only for oracle jdk 8.