title: Unable to load xml file from a absolute path
body: <p>There is a maven project A. Once I do mvn clean install, the project builds and the jar is available at my local repository ie 
  c:\repository\com\stackoverflow\A\A.jar</p>
  
  <p>A.jar contains couple of classes and xml files used by these classes</p>
  
  <p>From another maven project I am invoking one of the methods in the class which uses one XML file.</p>
  
  <p>Code is:</p>
  
  <pre><code>public File xmlFilder(String xmlAbsolutePath) {
    File f = new File(xmlAbsolutePath);
    return f;
  }
  </code></pre>
  
  <p>The second project is located in my D drive. On getting the absolute path, I am getting as <strong>\com\stackoverflow\A\res\p.xml</strong> which is the correct absolute path.</p>
  
  <p>But If I add the following code at line 3 , I am getting as follows:</p>
  
  <pre><code>public File xmlFilder(String xmlAbsolutePath) {
  
    File f = new File(xmlAbsolutePath);
  
    System.out.println("AbsolutePath----"+f.getAbsolutePath());  ---&gt; D:\com\stackoverflow\A\res\p.xml
  
    System.out.println("getPath------------"+f.getPath());       ---&gt; \com\stackoverflow\A\res\p.xml 
  
    System.out.println("exists--------------"+f.exists());       ----&gt; false
  
  return f;
  
  }
  </code></pre>
  
  <p>Can anyone please let me know where I am going wrong. Why it is not picking the xml from the repository which is present in C drive. </p>