title: Why does referencing "src/main/resources" work after compilation, during testing?
body: <p>How is it that I can get a resource at runtime through a <code>new File("src/main/resources/test.txt")</code> reference in my source code? As far as I know, Maven puts these files within the target/classes and target/test-classes directories/classpath for testing and runtime use. What is happening behind the scenes?</p>
  
  <p>Thanks!</p>