title: Java/Maven compilation failure (no suitable constructor found)
body: <p>I ran into a strange problem..<br>
  I work on a project that use the <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ProcessBuilder.html" rel="nofollow">ProcessBuilder Class</a>.<br>
  On my local machine (Java6 and Java7 tested) I can easily <code>mvn clean install</code> &amp; <code>mvn assembly:single</code> the project without any errors. Now I want to let the project build by <a href="https://travis-ci.org" rel="nofollow">travis-ci</a> and ran into to following error </p>
  
  <blockquote>
    <p>error: no suitable constructor found for ProcessBuilder(String)  </p>
  </blockquote>
  
  <p><a href="https://travis-ci.org/MultiServerControl/MineControl/jobs/4854648" rel="nofollow">full log file here..</a> 
  but the <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ProcessBuilder.html#ProcessBuilder%28java.lang.String...%29" rel="nofollow">Javadoc for ProcessBuilder</a> show me that constructor.<br>
  My .travis.yml looks like this</p>
  
  <blockquote>
    <p>language: java</p>
    
    <p>jdk:<br>
      - oraclejdk7<br>
      - openjdk6<br>
      - openjdk7</p>
    
    <p>after_success:<br>
      - mvn assembly:single</p>
  </blockquote>
  
  <p>Any ideas why the build fails on travis-ci?</p>
  
  <p>Thanks, F481</p>
  
  <p><strong>Edit:</strong><br>
  Locally I'm using Maven 3, like travis-ci too (travis doc: "Travis Java builder will use Maven 3 to build it.")
  My pom.xml: <a href="https://github.com/MultiServerControl/MineControl/blob/master/pom.xml" rel="nofollow">https://github.com/MultiServerControl/MineControl/blob/master/pom.xml</a><br>
  And the java code of the first error: <code>this.processBuilder = new ProcessBuilder("");</code><br>
  The full class is available <a href="https://github.com/MultiServerControl/MineControl/blob/master/src/main/java/com/multiservercontrol/minecontrol/ServerController.java" rel="nofollow">here</a></p>
  
  <p><strong>Edit2:</strong>
  I specified a source and target version for the maven compilation like this:</p>
  
  <pre><code>&lt;plugin&gt;
        &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
        &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
        &lt;version&gt;3.0&lt;/version&gt;
        &lt;configuration&gt;
            &lt;source&gt;1.7&lt;/source&gt;
            &lt;target&gt;1.7&lt;/target&gt;
        &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Now the build is working for JDK7: <a href="https://travis-ci.org/MultiServerControl/MineControl/jobs/5963859" rel="nofollow">https://travis-ci.org/MultiServerControl/MineControl/jobs/5963859</a>  </p>
  
  <p>But I don't get the reason for that behavior.. and I want to build the project for JDK 5,6 too.<br>
  How can I do that?</p>