title: Maven Project with multi modules is unable to find pom.xml of modules - Jenkins/Eclipse
body: <p>I created a Maven Project on Jenkins that will clone a mercurial branch from Butbucket, so I can run my Selenium TestNG Scripts. I have tried wiping out the workspace to have a clean build, but it resulted in the same error as before. Also, I checked for each module in my jenkins workspace for the pom.xml files and they are all present. Click the image for the error report from the console. I am not understanding why both Jenkins and Eclipse is unable to find the pom.xml file of my dependencies when it is in the same project folder.</p>
  
  <p><a href="http://i.stack.imgur.com/t2zO0.png" rel="nofollow">Image: Jenkins Console Output</a></p>
  
  <p>Pom.xml  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &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;parent&gt;
      &lt;artifactId&gt;PSWebTestFramework&lt;/artifactId&gt;
      &lt;groupId&gt;com.guidewire.pstesting&lt;/groupId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;/parent&gt;
  
  &lt;artifactId&gt;pswtf-test-tp-pc&lt;/artifactId&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.testng&lt;/groupId&gt;
          &lt;artifactId&gt;testng&lt;/artifactId&gt;
          &lt;version&gt;6.8.21&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hamcrest&lt;/groupId&gt;
          &lt;artifactId&gt;hamcrest-all&lt;/artifactId&gt;
          &lt;version&gt;1.3&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
          &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
          &lt;version&gt;2.53.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.guidewire.pstesting&lt;/groupId&gt;
          &lt;artifactId&gt;pswtf-application-core&lt;/artifactId&gt;
          &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.guidewire.pstesting&lt;/groupId&gt;
          &lt;artifactId&gt;pswtf-test-core&lt;/artifactId&gt;
          &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.guidewire.pstesting&lt;/groupId&gt;
          &lt;artifactId&gt;pswtf-test-tp-core&lt;/artifactId&gt;
          &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.guidewire.pstesting&lt;/groupId&gt;
          &lt;artifactId&gt;pswtf-application-tp-pc&lt;/artifactId&gt;
          &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.guidewire.pstesting&lt;/groupId&gt;
          &lt;artifactId&gt;pswtf-application-ootb-pc&lt;/artifactId&gt;
          &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;defaultGoal&gt;test&lt;/defaultGoal&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.18.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;excludes&gt;META-INF/*.SF&lt;/excludes&gt;
                  &lt;excludes&gt;META-INF/*.DSA&lt;/excludes&gt;
                  &lt;excludes&gt;META-INF/*.RSA&lt;/excludes&gt;
                  &lt;argLine&gt;-Dorg.uncommons.reportng.escape-output=false&lt;/argLine&gt;   &lt;!-- get html in reports rather than string --&gt;
                  &lt;properties&gt;
                      &lt;property&gt;
                          &lt;name&gt;usedefaultlisteners&lt;/name&gt;
                          &lt;value&gt;false&lt;/value&gt; &lt;!-- disabling default listeners is optional --&gt;
                      &lt;/property&gt;
                      &lt;property&gt;
                          &lt;name&gt;listener&lt;/name&gt;
                          &lt;value&gt;org.uncommons.reportng.HTMLReporter, org.uncommons.reportng.JUnitXMLReporter, org.testng.reporters.XMLReporter&lt;/value&gt;
                      &lt;/property&gt;
                  &lt;/properties&gt;
                  &lt;additionalClasspathElements&gt;
                      &lt;additionalClasspathElement&gt;${basedir}/src/test/conf&lt;/additionalClasspathElement&gt;
                      &lt;additionalClasspathElement&gt;${basedir}/src/test/testdata&lt;/additionalClasspathElement&gt;
                  &lt;/additionalClasspathElements&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.8&lt;/source&gt;
                  &lt;target&gt;1.8&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>UPDATE:
  Based on the solution below I altered my job configurations and according to the image below and I was able to get a SUCCESS instead of failure.</p>
  
  <p><a href="http://i.stack.imgur.com/uHiQW.png" rel="nofollow">Image: Job Configuration</a></p>