title: getting parent directory of ${basedir} from maven
body: <p>Is there way to get parent directory for <code>${basedir}</code> in my pom.xml? Currently I have </p>
  
  <pre><code>&lt;earSourceDirectory&gt;${basedir}/EAR/src/main/resources&lt;/earSourceDirectory&gt; 
  </code></pre>
  
  <p>but I need to access parent directory of basedir as my resources lies in different maven project.</p>
  
  <p>How can I get the parent folder of $<code>{basedir}</code>?</p>