title: Maven: Not able to read the file from resource folder
body: <pre><code>Package
  |
  |------src/main/java
  |------resources
              |---- config.properties
  </code></pre>
  
  <p>In <strong>pom.xml</strong>, I have set resoucres directory as follows</p>
  
  <pre><code>&lt;resources&gt;
          &lt;resource&gt;
              &lt;directory&gt;resources&lt;/directory&gt;
          &lt;/resource&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>I'm able to get the absolute path of the file. But When I try to read or check whether it is a file or directory, it is return false.</p>
  
  <p><strong>sample.java</strong></p>
  
  <pre><code>File configFile =  new File("config.properties");               
          System.out.println("PATH="+newFile.getAbsolutePath());
          System.out.println("IsFile="+newFile.isFile());
         System.out.println("CanRead="+configFile.canRead());
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <pre><code>PATH=D:\JCB\MyWorkSpace_LunaJEE\MessageProcessor\config.properties
  IsFile=false
  CanRead=false
  </code></pre>
  
  <p>Any help will be appreciated.</p>