title: maven test-jar: src/test/resources/file present but could not found by test
body: <p>I have module structure like</p>
  
  <pre><code>external_services/pom.xml
                   ifs/pom.xml
                       src/main/java
                       src/main/java/resources
                       src/test/java
                       src/test/java/resources/sample.json
  inventory/pom.xml
           ifs/pom.xml
              src/main/java
              src/main/java/resources
              src/test/java/MyTest.java
  </code></pre>
  
  <p>In this <code>MyTest.java</code> I need to get <code>sample.json</code> since I want that to be shared across, so in <code>business/pom.xml</code> I add the following</p>
  
  <pre><code>       &lt;dependency&gt;
              &lt;groupId&gt;com.org.my_services.external_services&lt;/groupId&gt;
              &lt;artifactId&gt;ifs&lt;/artifactId&gt;
              &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
              &lt;type&gt;test-jar&lt;/type&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>so now when I run the test, I see</p>
  
  <pre><code>file:/Users/harith/.m2/repository/com/org/my_services/external_services/ifs/1.0-SNAPSHOT/ifs-1.0-SNAPSHOT-tests.jar!/sample.json (No such file or directory)
  </code></pre>
  
  <p>However, when I look at jar <code>ifs-1.0-SNAPSHOT-tests.jar</code>, I see it there</p>
  
  <pre><code>jar -tvf /Users/harith/.m2/repository/com/org/pryme_services/federated_services/ifs/1.0-SNAPSHOT/ifs-1.0-SNAPSHOT-tests.jar
       0 Wed May 07 09:47:36 PDT 2014 META-INF/
     131 Wed May 07 09:47:34 PDT 2014 META-INF/MANIFEST.MF
       0 Wed May 07 09:47:34 PDT 2014 com/
       0 Wed May 07 09:47:34 PDT 2014 com/org/
       0 Wed May 07 09:47:34 PDT 2014 com/org/pryme_services/
       0 Wed May 07 09:47:34 PDT 2014 com/org/pryme_services/external_services/
       0 Wed May 07 09:47:34 PDT 2014 com/org/pryme_services/external_services/ifs/
       0 Wed May 07 09:47:34 PDT 2014 com/org/pryme_services/external_services/ifs/configuration/
     892 Wed May 07 09:47:34 PDT 2014 com/org/pryme_services/external_services/ifs/configuration/DevelopmentContextConfiguration.class
     888 Wed May 07 09:47:34 PDT 2014 com/org/pryme_services/external_services/ifs/configuration/ProductionContextConfiguration.class
    2381 Wed May 07 09:47:34 PDT 2014 com/org/pryme_services/external_services/ifs/IFSClientTest.class
    1422 Wed May 07 09:47:34 PDT 2014 com/org/pryme_services/external_services/ifs/InventoryRESTClientTest.class
    1033 Wed May 07 09:47:34 PDT 2014 com/org/pryme_services/external_services/ifs/MockIfsClient$1.class
    2350 Wed May 07 09:47:34 PDT 2014 com/org/pryme_services/external_services/ifs/MockIfsClient.class
  142315 Wed May 07 09:47:34 PDT 2014 sample.json   // &lt;-- here
       0 Wed May 07 09:47:36 PDT 2014 META-INF/maven/
       0 Wed May 07 09:47:36 PDT 2014 META-INF/maven/com.org.pryme_services.federated_services/
       0 Wed May 07 09:47:36 PDT 2014 META-INF/maven/com.org.pryme_services.federated_services/ifs/
    2391 Wed May 07 09:45:36 PDT 2014 META-INF/maven/com.org.pryme_services.federated_services/ifs/pom.xml
     138 Wed May 07 09:47:34 PDT 2014 META-INF/maven/com.org.pryme_services.federated_services/ifs/pom.properties
  </code></pre>
  
  <p>The way it is used in class is</p>
  
  <pre><code>inventoryPriceDetails = mapper.readValue(new File(getClass().getResource("/getInventoryAndPrice.json").getPath()), new TypeReference&lt;List&lt;InventoryPriceDetail&gt;&gt;() {
              });
  </code></pre>
  
  <p>I am not sure what I am missing, can some one please help?</p>