title: Can't access files from src/main/resources via a test-case
body: <p>I have a <code>file.dat</code> in <code>src/main/resources</code>.</p>
  
  <p>When I try to test a class which loads this file via a jar file, the test fails because its not able to find the file in the path (<code>I/O Exception</code>). The path which I get via test is: </p>
  
  <p><code>/home/usr/workspace/project/target/test-classes/file.dat</code> </p>
  
  <p>but the file is not exist in <code>target/test-classes</code> any idea?</p>