title: Maven parent pom: Unable to resolve imported document
body: <p>In the following project structure:</p>
  
  <pre><code>Parent
      - ProjectA
      - ProjectB
      - etc.
  </code></pre>
  
  <p><code>ProjectA</code> build correctly when I run <code>mvn clean install</code> from within <code>ProjectA</code>.</p>
  
  <p>However, when I run <code>mvn clean install</code> from the <code>Parent</code> folder I get the following error:</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.axis2:axis2-wsdl2code-maven-plugin:1.5.6:wsdl2code 
  (default) on project ProjectA: Error parsing WSDL: 
  WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document
  at 'target/TcWebService.wsdl'.: java.io.FileNotFoundException: 
  This file was not found: 
  file:/D:{PATH_TO_PARENT}/target/TcWebService.wsdl -&gt; [Help 1]
  </code></pre>
  
  <p><strong>The correct path would be <code>file:/D:{PATH_TO_PARENT}/ProjectA/target/TcWebService.wsdl</code>. The <code>ProjectA</code> part is missing</strong></p>
  
  <p>Parent.pom</p>
  
  <pre><code>&lt;modules&gt;
      &lt;module&gt;ProjectA&lt;/module&gt;
      &lt;module&gt;ProjectB&lt;/module&gt;
      ...
  &lt;/modules&gt;
  </code></pre>
  
  <p>ProjectA pom:</p>
  
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;{MY.GROUP.ID}&lt;/groupId&gt;
      &lt;artifactId&gt;jars&lt;/artifactId&gt;
      &lt;version&gt;1.0&lt;/version&gt;
      &lt;relativePath&gt;../pom.xml&lt;/relativePath&gt;
  &lt;/parent&gt;
  
  ...
  
  &lt;plugin&gt;
      &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;phase&gt;validate&lt;/phase&gt;
              &lt;configuration&gt;
                  &lt;tasks&gt;
                      &lt;copy file="src/main/wsdl/TcWebService.wsdl"
                            tofile="target/TcWebService.wsdl"/&gt;
                  &lt;/tasks&gt;
              &lt;/configuration&gt;
              &lt;goals&gt;
                  &lt;goal&gt;run&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
   &lt;/plugin&gt;
  </code></pre>
  
  <p>Any ideas please?</p>