title: keystore.jks (for SSL) cannot be found when running project with Intellij IDEA, but is found by Eclipse
body: <p>I am using an application context file to setup SSL so as to connect to a queue using Spring JMS. I do this leveraging the MethodInvokingFactoryBean:</p>
  
  <pre><code>&lt;bean
      class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"&gt;
      &lt;property name="targetObject"&gt;
          &lt;bean
              class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"&gt;
              &lt;property name="targetClass" value="java.lang.System" /&gt;
              &lt;property name="targetMethod" value="getProperties" /&gt;
          &lt;/bean&gt;
      &lt;/property&gt;
      &lt;property name="targetMethod" value="putAll" /&gt;
      &lt;property name="arguments"&gt;
          &lt;util:properties&gt;
              &lt;prop key="javax.net.ssl.trustStore"&gt;src\main\resources\META-INF\spring\ssl\truststore.jks
              &lt;/prop&gt;
              &lt;prop key="javax.net.ssl.trustStorePassword"&gt;******&lt;/prop&gt;
              &lt;prop key="javax.net.ssl.keyStore"&gt;src\main\resources\META-INF\spring\ssl\keystore.jks
              &lt;/prop&gt;
              &lt;prop key="javax.net.ssl.keyStorePassword"&gt;******&lt;/prop&gt;
              &lt;prop key="javax.net.ssl.keyStoreType"&gt;jks&lt;/prop&gt;
          &lt;/util:properties&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>This works within eclipse without any issue. However when run with IDEA it doesn't seem to find the keyStore file and hence can't connect causing an SSL Handshake failure.</p>
  
  <pre><code>Caused by: java.io.FileNotFoundException: src\main\resources\META-INF\spring\ssl\keystore.jks (The system cannot find the path specified)
  </code></pre>
  
  <p>The project is a standard maven project. Both Eclipse and IDEA are using the same JRE and have the resources folder included in the build path. Any help as to why this is happening is appreciated. Also if any other info is required let me know.</p>