title: Jenkins for a maven project - generating test reports
body: <p>I am using Jenkins 1.450 for CI, my source code is in a git repo, and I am using maven as build environment.</p>
  
  <p><strong>My problem:</strong> I cannot get Jenkins to generate test results.</p>
  
  <p><strong>Details:</strong> 
  <br>1. If I create a 'freestyle' job in Jenkins, it executes the build successfully. But, if I select the 'Publish JUnit test result report' option, Jenkins cannot find the test report files. I can see them in target/surefire-reports/ if I do 'mvn install' myself, but Jenkins somehow doesn't build in the workplace... after a Jenkins build, I don't see this target directory created.
  <br><br>2. If I create 'Maven 2/3' job, and give it path to my Maven installation, Jenkins simply does not find it - it says: <code>&lt;path&gt;/Maven_3.0.4 doesn't have a 'lib' subdirectory - thus cannot be a valid maven installation!</code>
  <br>The error doesn't change even after giving read-write-execute permissions to all users for this directory.</p>
  
  <p>What is it that I am doing wrong here? Do I need to have the <code>&lt;reporting&gt;</code> tag in my pom files? Where can I find documentation/troubleshooting info for all this?</p>
  
  <p>Thanks!</p>