title: Why does Travis CI think my code is Java 1.3, and how to fix it?
body: <p>I'm trying out Travis CI with a Java project (pretty standard Maven, Spring setup).</p>
  
  <p>Based on Travis docs, this should suffice in the <code>.travis.yml</code> file:</p>
  
  <pre><code>language: java
  </code></pre>
  
  <p>Travis should notice the project's <code>pom.xml</code> and run <code>mvn test</code> by default.</p>
  
  <p>However, the Travis build fails, giving me:</p>
  
  <pre><code>error: static import declarations are not supported in -source 1.3
  </code></pre>
  
  <p>My sources are Java 1.6. How and where should I tell that to Travis? The <a href="http://about.travis-ci.org/docs/user/languages/java/" rel="nofollow">Java project docs</a> don't mention <code>-source</code> option at all. (Also, 1.3 is a bit strange default, isn't it?)</p>