sudo: false
jdk:
  - oraclejdk9
  - oraclejdk8
  - openjdk7
language: java
matrix:
  include:
  - jdk: openjdk7
    env: CUSTOM_MVN_VERSION="3.3.9"
  - jdk: oraclejdk8
    env: CUSTOM_MVN_VERSION="3.3.9"
  - jdk: oraclejdk8
    env: CUSTOM_MVN_VERSION="3.5.2"
  - jdk: oraclejdk9
    env: CUSTOM_MVN_VERSION="3.3.9"
  - jdk: oraclejdk9
    env: CUSTOM_MVN_VERSION="3.5.2"

install:
  - if [[ -n "${CUSTOM_MVN_VERSION}" ]]; then
      echo "Download Maven ${CUSTOM_MVN_VERSION}....";
      if [[ "${CUSTOM_MVN_VERSION}" == "3.0" ]]; then
        wget https://archive.apache.org/dist/maven/binaries/apache-maven-3.0-bin.zip || travis_terminate 1;
      else
        wget https://archive.apache.org/dist/maven/maven-3/${CUSTOM_MVN_VERSION}/binaries/apache-maven-${CUSTOM_MVN_VERSION}-bin.zip || travis_terminate 1;
      fi;
      unzip -qq apache-maven-${CUSTOM_MVN_VERSION}-bin.zip || travis_terminate 1;
      export M2_HOME=$PWD/apache-maven-${CUSTOM_MVN_VERSION};
      export PATH=$M2_HOME/bin:$PATH;
      mvn -version;
    fi
script: mvn -B clean integration-test

sudo: false
jdk:
  - oraclejdk9
  - oraclejdk8
  - openjdk8
  - openjdk7
language: java
matrix:
  include:
  - jdk: openjdk7
    env: CUSTOM_MVN_VERSION="3.3.9"
  - jdk: oraclejdk8
    env: CUSTOM_MVN_VERSION="3.3.9"
  - jdk: oraclejdk8
    env: CUSTOM_MVN_VERSION="3.5.2"
  - jdk: oraclejdk9
    env: CUSTOM_MVN_VERSION="3.3.9"
  - jdk: oraclejdk9
    env: CUSTOM_MVN_VERSION="3.5.2"

install:
  - if [[ -n "${CUSTOM_MVN_VERSION}" ]]; then
      echo "Download Maven ${CUSTOM_MVN_VERSION}....";
      if [[ "${CUSTOM_MVN_VERSION}" == "3.0" ]]; then
        wget https://archive.apache.org/dist/maven/binaries/apache-maven-3.0-bin.zip || travis_terminate 1;
      else
        wget https://archive.apache.org/dist/maven/maven-3/${CUSTOM_MVN_VERSION}/binaries/apache-maven-${CUSTOM_MVN_VERSION}-bin.zip || travis_terminate 1;
      fi;
      unzip -qq apache-maven-${CUSTOM_MVN_VERSION}-bin.zip || travis_terminate 1;
      export M2_HOME=$PWD/apache-maven-${CUSTOM_MVN_VERSION};
      export PATH=$M2_HOME/bin:$PATH;
      mvn -version;
    fi
script: mvn -B clean integration-test

Add openjdk8 to build matrix
Add openjdk8 to build matrix
