---
platform: linux
image_resource:
  type: docker-image
  source:
    repository: cloudfoundry/cflinuxfs2
inputs:
  - name: build-tar
run:
  path: bash
  args: ["-c",
    "apt-get update &&
    apt-get install -y openjdk-7-jdk maven ant &&
    tar xzf build-tar/binary-builder-source.tgz -C /tmp &&
    cd /tmp/x86_64-linux-gnu/ports/jruby/*/*/ &&
    export JAVA_OPTS='-XX:+TieredCompilation -XX:TieredStopAtLevel=1' &&
    export MALLOC_ARENA_MAX=2 &&
    export PHASE='-Ptest' &&
    mvn -Pbootstrap clean install -Dinvoker.skip -Dmaven.test.skip &&
    mvn install -Dinvoker.skip=false $PHASE"]

---
platform: linux
image_resource:
  type: docker-image
  source:
    repository: cloudfoundry/cflinuxfs2
inputs:
  - name: build-tar
run:
  path: bash
  args: ["-c",
    "apt-get update &&
    apt-get install -y openjdk-7-jdk ant &&
    tar xzf build-tar/binary-builder-source.tgz -C /tmp &&
    cd /tmp && wget https://www.apache.org/dist/maven/maven-3/3.3.9/source/apache-maven-3.3.9-src.tar.gz &&
    tar xzf apache-maven-3.3.9-src.tar.gz &&
    cd apache-maven-3.3.9 &&
    ant -noinput -Dmaven.home=/tmp/maven-home/ &&
    export PATH=/tmp/maven-home/bin:$PATH &&
    cd /tmp/x86_64-linux-gnu/ports/jruby/*/*/ &&
    export JAVA_OPTS='-XX:+TieredCompilation -XX:TieredStopAtLevel=1' &&
    export MALLOC_ARENA_MAX=2 &&
    export PHASE='-Ptest' &&
    mvn -Pbootstrap clean install -Dinvoker.skip -Dmaven.test.skip &&
    mvn install -Dinvoker.skip=false $PHASE"]

Install correct version of maven
Install correct version of maven

- apt-get was installing the wrong version of maven, so the tests weren't
running. Now they should run and pass.

[#113122547]
