title: java.util.MissingResourceException: Can't find bundle for base name messages, locale en_US Floreant POS
body: <p>I have downloaded the FLoreant POS open source code,  using mvn clean install it got build successfully. But when I am trying to run the application its not able to read the <code>messages.properties</code> file even though everything is in classpath below is the structure of project and classpath snapshot. not getting any clue why input Stream is coming as null in code</p>
  
  <pre><code>private static class ResourceControl extends ResourceBundle.Control {
          @Override
          public ResourceBundle newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) throws IllegalAccessException,
                  InstantiationException, IOException {
              String bundlename = toBundleName(baseName, locale);
              String resName = toResourceName(bundlename, "properties"); //$NON-NLS-1$
              InputStream stream = loader.getResourceAsStream(resName);
              return new PropertyResourceBundle(new InputStreamReader(stream, "UTF-8")); //$NON-NLS-1$
          }
  
      }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/CXAfC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CXAfC.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/si0q9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/si0q9.png" alt="enter image description here"></a></p>
  
  <p>maven build plugin code</p>
  
  <pre><code>&lt;scm&gt;
      &lt;connection&gt;scm:svn:http://svn.code.sf.net/p/floreantpos/code/trunk&lt;/connection&gt;
  &lt;/scm&gt;
  
  &lt;build&gt;
      &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
      &lt;finalName&gt;floreantpos&lt;/finalName&gt;
      &lt;resources&gt;
          &lt;resource&gt;
              &lt;directory&gt;src&lt;/directory&gt;
              &lt;excludes&gt;
                  &lt;exclude&gt;**/*.java&lt;/exclude&gt;
              &lt;/excludes&gt;
          &lt;/resource&gt;
          &lt;resource&gt;
              &lt;directory&gt;resources&lt;/directory&gt;
          &lt;/resource&gt;
          &lt;resource&gt;
              &lt;directory&gt;filters&lt;/directory&gt;
              &lt;filtering&gt;true&lt;/filtering&gt;
              &lt;includes&gt;
                  &lt;include&gt;*.properties&lt;/include&gt;
              &lt;/includes&gt;
          &lt;/resource&gt;
      &lt;/resources&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;buildnumber-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.3&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;validate&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;create&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;doCheck&gt;false&lt;/doCheck&gt;
                  &lt;doUpdate&gt;false&lt;/doUpdate&gt;
                  &lt;providerImplementations&gt;
                      &lt;svn&gt;javasvn&lt;/svn&gt;
                  &lt;/providerImplementations&gt;
              &lt;/configuration&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;com.google.code.maven-scm-provider-svnjava&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-scm-provider-svnjava&lt;/artifactId&gt;
                      &lt;version&gt;2.1.1&lt;/version&gt;
                  &lt;/dependency&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.tmatesoft.svnkit&lt;/groupId&gt;
                      &lt;artifactId&gt;svnkit&lt;/artifactId&gt;
                      &lt;version&gt;1.8.5&lt;/version&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.7&lt;/source&gt;
                  &lt;target&gt;1.7&lt;/target&gt;
                  &lt;encoding&gt;UTF-8&lt;/encoding&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.4&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;encoding&gt;UTF-8&lt;/encoding&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.3.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;archive&gt;
                      &lt;manifest&gt;
                          &lt;addClasspath&gt;true&lt;/addClasspath&gt;
                          &lt;classpathPrefix&gt;lib/&lt;/classpathPrefix&gt;
                          &lt;mainClass&gt;com.floreantpos.main.Main&lt;/mainClass&gt;
                      &lt;/manifest&gt;
                      &lt;manifestEntries&gt;
                          &lt;Class-Path&gt;config/ i18n/&lt;/Class-Path&gt;
                      &lt;/manifestEntries&gt;
                  &lt;/archive&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.4&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;single&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;descriptor&gt;resources/META-INF/mvn-assembly.xml&lt;/descriptor&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.6&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;prepare&lt;/id&gt;
                      &lt;phase&gt;validate&lt;/phase&gt;
                      &lt;configuration&gt;
                          &lt;target&gt;
                              &lt;echo message="prepare phase" /&gt;
                              &lt;unzip src="database/derby-server/posdb.zip" dest="${project.build.directory}" /&gt;
                          &lt;/target&gt;
                      &lt;/configuration&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;run&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;configuration&gt;
                          &lt;target&gt;
                              &lt;zip destfile="${project.build.directory}/${project.build.finalName}-1.4-build${buildNumber}.zip" basedir="${project.build.directory}/${project.build.finalName}-bin/${project.build.finalName}"&gt;&lt;/zip&gt;
                          &lt;/target&gt;
                      &lt;/configuration&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;run&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
      &lt;pluginManagement&gt;
          &lt;plugins&gt;
              &lt;!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. --&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.eclipse.m2e&lt;/groupId&gt;
                  &lt;artifactId&gt;lifecycle-mapping&lt;/artifactId&gt;
                  &lt;version&gt;1.0.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;lifecycleMappingMetadata&gt;
                          &lt;pluginExecutions&gt;
                              &lt;pluginExecution&gt;
                                  &lt;pluginExecutionFilter&gt;
                                      &lt;groupId&gt;
                                          org.apache.maven.plugins
                                      &lt;/groupId&gt;
                                      &lt;artifactId&gt;
                                          maven-antrun-plugin
                                      &lt;/artifactId&gt;
                                      &lt;versionRange&gt;
                                          [1.6,)
                                      &lt;/versionRange&gt;
                                      &lt;goals&gt;
                                          &lt;goal&gt;run&lt;/goal&gt;
                                      &lt;/goals&gt;
                                  &lt;/pluginExecutionFilter&gt;
                                  &lt;action&gt;
                                      &lt;ignore&gt;&lt;/ignore&gt;
                                  &lt;/action&gt;
                              &lt;/pluginExecution&gt;
                          &lt;/pluginExecutions&gt;
                      &lt;/lifecycleMappingMetadata&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/pluginManagement&gt;
  &lt;/build&gt;
  </code></pre>