Facing problem to access resource file in maven project
<p>I am unableto access <code>myXml.xml</code> file through <code>MyStaticClass.java</code> class from following project structure.<br>
If I put this xml file somewhere under java folder I can access it by:</p>

<pre><code>MyStaticClass.class.getResourceAsStream("[...]/myXml.xml");
</code></pre>

<p>But can't access from resources folder, neither by absolute path (/myXml.xml) nor by relative path starting from app folder. Is something special with maven project or I am doing some mistake?<br>
Please help me resolve this issue.</p>

<pre><code>my-app  
`-- src  
     -- main  
        |-- java  
        |   `-- com  
        |       `-- mycompany  
        |           `-- app  
        |               `-- App.java  
        |               `-- MyStaticClass.java  
        `-- resources  
            `-- myXml.xml  
</code></pre>
