title: Maven2: use ${basedir} in jar path
body: <p>I am using an external, proprietary jar in my project.  When I hard-code the path as follows in my pom.xml, it works fine:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;com.foo.bar&lt;/groupId&gt;
    &lt;artifactId&gt;bar&lt;/artifactId&gt;
    &lt;version&gt;5.2&lt;/version&gt;
    &lt;scope&gt;system&lt;/scope&gt;
    &lt;type&gt;jar&lt;/type&gt;
    &lt;systemPath&gt;D:\workspace\myproj\external\companyname\lib\proprietary_api.jar&lt;/systemPath&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>However, when I try to use the ${basedir} variable, maven can't find the jar:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;com.foo.bar&lt;/groupId&gt;
    &lt;artifactId&gt;bar&lt;/artifactId&gt;
    &lt;version&gt;5.2&lt;/version&gt;
    &lt;scope&gt;system&lt;/scope&gt;
    &lt;type&gt;jar&lt;/type&gt;
    &lt;systemPath&gt;${basedir}\external\companyname\lib\proprietary_api.jar&lt;/systemPath&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>The pom is located in D:\workspace\myproj</p>
  
  <p>This also needs to be cross-platform compatible (dev on Windows, deploy on Linux).</p>
  
  <p>Thanks!</p>