title: Skip first mvn install in travis-ci
body: <p>I'm having troubles building a project with maven on travis-ci because travis automatically runs </p>
  
  <pre><code>mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
  </code></pre>
  
  <p>which fails because of a timeout:</p>
  
  <pre><code>No output has been received in the last 10 minutes, this potentially
  indicates a stalled build or something wrong with the build itself
  </code></pre>
  
  <p>According to the documentation I should be able to override it defining a custom script in <code>.travis.yml</code> but it does not work, here my configuration:</p>
  
  <pre><code>  sudo: false
    language:
      - java
    script: "travis_wait mvn -T4 -pl quickfixj-codegenerator install"
    jdk:
      - oraclejdk8
    env:
      - MAVEN_OPTS="-Xms2048m -Xmx=2048m"
    branches:
      only:
        - travis-ci-build
  </code></pre>
  
  <p>Is there any way to avoid the automatic mvn install or to tweak it ?</p>