title: Maven error in Jenkins JMeter project, "Error creating properties files for forking"
body: <p>I have Maven JMeter project which runs perfectly from my home folder using "mvn verify", but when I try to run it from Jenkins I get error message to console:</p>
  
  <blockquote>
  <pre><code>[workspace] $ mvn verify
  FATAL: command execution failed
  java.io.IOException: Cannot run program "mvn" (in directory "/var/lib/jenkins/jobs/PerformanceTests/workspace"): error=2, No such
  </code></pre>
    
    <p>file or directory"</p>
  </blockquote>
  
  <p>If I try to run "mvn verify" manually from folder where Jenkins tries to run it (/var/lib/jenkins/jobs/PerformanceTests/workspace), I get error message:</p>
  
  <blockquote>
    <p>Failed to execute goal
    org.apache.maven.plugins:maven-surefire-plugin:2.10:test
    (default-test) on project jmeter: Error creating properties files for
    forking; nested exception is java.io.IOException: No such file or
    directory -> [Help 1]</p>
  </blockquote>
  
  <p>My pom is:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;perftest&lt;/groupId&gt;
    &lt;artifactId&gt;jmeter&lt;/artifactId&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
    &lt;name&gt;jmeter&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;com.lazerycode.jmeter&lt;/groupId&gt;
                  &lt;artifactId&gt;jmeter-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.8.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;testResultsTimestamp&gt;false&lt;/testResultsTimestamp&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;jmeter-tests&lt;/id&gt;
                          &lt;phase&gt;verify&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;jmeter&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>All other jobs in the same Jenkins base folder "/var/lib/jenkins/jobs" are working fine. I also use git plugin with Jenkins.</p>