load property file from another project in the same JVM
<p>I have two maven projects <code>A</code> and <code>B</code> in the same JVM. Project <code>B</code> depends on project <code>A</code>. In one class of project <code>A</code>, I need to load a property file of project <code>B</code> e.g. <code>/B/src/main/resource/foo.properties</code> in a static block which is something like the following:</p>

<pre><code> Class bar{//this class is in project A
    static{
     //do the magic to load the property file in project B
    }
   }
</code></pre>

<p>What's the right path to access the mentioned property file in project <code>B</code>? </p>

<p>Please help with a working pseudo statements. Thanks in advance!!</p>
