title: how to get the super pom basedir in a child module pom?
body: <p>I want to define a local repository in my maven project. </p>
  
  <p>I've got a super pom and several child modules. My file structure is : </p>
  
  <pre><code>/root
      /repository
      /child
          pom.xml
      pom.xml
  </code></pre>
  
  <p>in my super pom I define :</p>
  
  <pre><code>&lt;repository&gt;
      &lt;id&gt;my-local-repo&lt;/id&gt;
      &lt;url&gt;file://${basedir}/repository&lt;/url&gt;
  &lt;/repository&gt;
  </code></pre>
  
  <p>The problem is that in my child pom, the repository defined in my super pom refers to /root/child/repository and so, dependencies cannot be found...</p>
  
  <p>Is there a way to define a path always relative to the super pom ?</p>
  
  <p>If not, what's the best way to solve the problem ?</p>