title: What is the classpath of message.properties if in dependency jar
body: <p>I made several dependency jar files by Spring, and some of the classes requires Spring messageSource to load i18n  external translation.</p>
  
  <p>So in maven I create following resources to for packing the jar file</p>
  
  <pre><code>    &lt;resources&gt;
          &lt;resource&gt;
              &lt;directory&gt;src/main/resources&lt;/directory&gt;
              &lt;includes&gt;
                  &lt;include&gt;**/*.properties&lt;/include&gt;
              &lt;/includes&gt;
              &lt;targetPath&gt;WEB-INF/i18n/&lt;/targetPath&gt;
          &lt;/resource&gt;
      &lt;/resources&gt;
  </code></pre>
  
  <p>just copy those i18n files into <code>%JAR_FILE%/WEB-INF/i18n/</code> so I hope Spring application can load the these language file, but failed(complaining about <code>No message found under code "THE_PROPERTY"</code>). Then question is, can spring scan and load all classpaths under dependencies in <code>WEB-INF\lib</code> and include all those <code>.properties</code> files, if specified in Spring-config.xml?</p>
  
  <p>If so, then what should be the correct class path for the file in the jar?</p>